Skip to content

Commit

Permalink
removed HAVE_SCIPY
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed Sep 19, 2024
1 parent e8e8ba3 commit c9a6ae9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CaimanSegmentationExtractor(SegmentationExtractor):
"""

extractor_name = "CaimanSegmentation"
installed = HAVE_H5PY and HAVE_SCIPY # check at class level if installed or not
installed = HAVE_H5PY # check at class level if installed or not
is_writable = True
mode = "file"
# error message when not installed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ class SbxImagingExtractor(ImagingExtractor):
"""Imaging extractor for the Scanbox image format."""

extractor_name = "SbxImaging"
installed = HAVE_Scipy # check at class level if installed or not
is_writable = True
mode = "folder"
installation_mesg = "To use the Sbx Extractor run:\n\n pip install scipy\n\n" # error message when not installed

def __init__(self, file_path: PathType, sampling_frequency: Optional[float] = None):
"""Create a SbxImagingExtractor from .mat or .sbx files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def write_segmentation(segmentation_object: SegmentationExtractor, save_path: Pa
AssertionError
If save_path is not a *.mat file.
"""
assert HAVE_SCIPY and HAVE_H5PY, "To use Cnmfe install scipy/h5py: \n\n pip install scipy/h5py \n\n"
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

0 comments on commit c9a6ae9

Please sign in to comment.