From c9a6ae93f19c7d154c2559d7a87c8a3cfe0f210a Mon Sep 17 00:00:00 2001 From: pauladkisson Date: Wed, 18 Sep 2024 19:59:50 -0700 Subject: [PATCH] removed HAVE_SCIPY --- .../extractors/caiman/caimansegmentationextractor.py | 2 +- .../extractors/sbximagingextractor/sbximagingextractor.py | 2 -- .../extractors/schnitzerextractor/cnmfesegmentationextractor.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/roiextractors/extractors/caiman/caimansegmentationextractor.py b/src/roiextractors/extractors/caiman/caimansegmentationextractor.py index c8725f1f..1839bba1 100644 --- a/src/roiextractors/extractors/caiman/caimansegmentationextractor.py +++ b/src/roiextractors/extractors/caiman/caimansegmentationextractor.py @@ -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 diff --git a/src/roiextractors/extractors/sbximagingextractor/sbximagingextractor.py b/src/roiextractors/extractors/sbximagingextractor/sbximagingextractor.py index 8926f8af..9b85dd37 100644 --- a/src/roiextractors/extractors/sbximagingextractor/sbximagingextractor.py +++ b/src/roiextractors/extractors/sbximagingextractor/sbximagingextractor.py @@ -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. diff --git a/src/roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py b/src/roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py index 5b9021a4..98dd1631 100644 --- a/src/roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py +++ b/src/roiextractors/extractors/schnitzerextractor/cnmfesegmentationextractor.py @@ -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():