Skip to content

Commit

Permalink
removed HAVE_H5PY
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Sep 19, 2024
1 parent 4e4a062 commit 44edf19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ def write_segmentation(segmentation_object: SegmentationExtractor, save_path: Pa
AssertionError
If save_path is not a *.mat file.
"""
assert HAVE_H5PY, "To use Cnmfe install scipy/h5py: \n\n pip install scipy/h5py \n\n"
save_path = Path(save_path)
assert save_path.suffix == ".mat", "'save_path' must be a *.mat file"
if save_path.is_file():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ class NewExtractSegmentationExtractor(
"""

extractor_name = "NewExtractSegmentation"
installed = HAVE_H5PY # check at class level if installed or not
installation_mesg = (
"To use NewExtractSegmentation install h5py: \n\n pip install h5py \n\n"
# error message when not installed
)
is_writable = False
mode = "file"

Expand Down Expand Up @@ -288,10 +283,8 @@ class LegacyExtractSegmentationExtractor(SegmentationExtractor):
"""

extractor_name = "LegacyExtractSegmentation"
installed = HAVE_H5PY # check at class level if installed or not
is_writable = False
mode = "file"
installation_mesg = "To use extract install h5py: \n\n pip install h5py \n\n" # error message when not installed

def __init__(
self,
Expand Down

0 comments on commit 44edf19

Please sign in to comment.