Skip to content

Commit

Permalink
Fix condition for ignoring assay_tiledb_group (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanslovsky authored Jan 21, 2025
1 parent 7a08b2a commit e2cb022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cellarr/CellArrDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def __init__(
# TODO: Maybe switch to on-demand loading of these objects
self._matrix_tdb = {}
_asy_path = dataset_path
if assay_tiledb_group is not None or len(assay_tiledb_group) > 0:
if assay_tiledb_group is not None and len(assay_tiledb_group) > 0:
_asy_path = f"{dataset_path}/{assay_tiledb_group}"
for mtdb in assay_uri:
self._matrix_tdb[mtdb] = tiledb.open(f"{_asy_path}/{mtdb}", "r", ctx=ctx)
Expand Down

0 comments on commit e2cb022

Please sign in to comment.