Skip to content

Commit

Permalink
chore: addressed PR feedback (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
metakuni committed Mar 21, 2022
1 parent a9c5aaf commit 332ee38
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/dataset/cxg_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ def _validate_and_initialize(self):

@staticmethod
def _open_array(uri, tiledb_ctx):
with tiledb.open(uri, mode="r", ctx=tiledb_ctx) as array:
if array.schema.sparse:
return tiledb.SparseArray(uri, mode="r", ctx=tiledb_ctx)
else:
return tiledb.DenseArray(uri, mode="r", ctx=tiledb_ctx)
return tiledb.open(uri, mode="r", ctx=tiledb_ctx)

def open_array(self, name):
try:
Expand Down

0 comments on commit 332ee38

Please sign in to comment.