Skip to content

Commit

Permalink
update single_cell.py: fix a bug when mask dataset is present
Browse files Browse the repository at this point in the history
  • Loading branch information
dummyindex committed May 1, 2024
1 parent 2902bd4 commit 971ed3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion livecellx/core/single_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def get_img(self):
return self.img_dataset.get_img_by_time(self.timeframe)

def get_mask(self, dtype=bool):
if isinstance(self.mask_dataset, SingleImageDataset):
if isinstance(self.mask_dataset, SingleImageDataset) or isinstance(self.mask_dataset, LiveCellImageDataset):
try:
return self.mask_dataset.get_img_by_time()
except Exception as e:
Expand Down

0 comments on commit 971ed3a

Please sign in to comment.