Skip to content

Commit

Permalink
chore: replaced deprecated method to open TileDB array (#56) (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
metakuni authored Mar 28, 2022
1 parent 24c41e4 commit 4e7bf79
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 @@ -194,11 +194,7 @@ def _validate_and_initialize(self):

@staticmethod
def _open_array(uri, tiledb_ctx):
with tiledb.Array(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 4e7bf79

Please sign in to comment.