Skip to content

Commit

Permalink
Update src/roiextractors/extractors/simaextractor/simasegmentationext…
Browse files Browse the repository at this point in the history
…ractor.py

Co-authored-by: Cody Baker <[email protected]>
  • Loading branch information
h-mayorquin and CodyCBakerPhD authored Aug 7, 2024
1 parent 872f17b commit a7eabed
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ def __init__(self, file_path: PathType, sima_segmentation_label: str = "auto_ROI
sima_segmentation_label: str
name of the ROIs in the dataset from which to extract all ROI info
"""
try:
sima_spec = importlib.util.find_spec("sima")
dill_spec = importlib.util.find_spec("dill")
if sima_spec is not None and dill_spec is not None:
import sima
import dill

HAVE_SIMA = True
except ImportError:
else:
HAVE_SIMA = False

assert HAVE_SIMA, self.installation_mesg
Expand Down

0 comments on commit a7eabed

Please sign in to comment.