From eb5cc8e5af8d3ed913f9f520b0809559b5a571ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 23:46:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../tiffimagingextractors/tiffimagingextractor.py | 11 ++++++----- tests/test_multitiff_multipage_imaging_extractor.py | 5 +---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/roiextractors/extractors/tiffimagingextractors/tiffimagingextractor.py b/src/roiextractors/extractors/tiffimagingextractors/tiffimagingextractor.py index 5f0043cb..d3e4b120 100644 --- a/src/roiextractors/extractors/tiffimagingextractors/tiffimagingextractor.py +++ b/src/roiextractors/extractors/tiffimagingextractors/tiffimagingextractor.py @@ -200,8 +200,9 @@ def __init__(self, folder_path: PathType, pattern: str, sampling_frequency: floa folder_path = Path(folder_path) file_paths = match_paths(str(folder_path), pattern) super().__init__(file_paths=file_paths, sampling_frequency=sampling_frequency) - self._kwargs.update({ - "folder_path": str(folder_path.absolute()), - "pattern": pattern, - }) - + self._kwargs.update( + { + "folder_path": str(folder_path.absolute()), + "pattern": pattern, + } + ) diff --git a/tests/test_multitiff_multipage_imaging_extractor.py b/tests/test_multitiff_multipage_imaging_extractor.py index c2554bd3..51f3e6a5 100644 --- a/tests/test_multitiff_multipage_imaging_extractor.py +++ b/tests/test_multitiff_multipage_imaging_extractor.py @@ -36,10 +36,7 @@ def test_init_folder_tiff_imaging_extractor_multi_page(): def test_init_multitiff_imaging_extractor_multi_page(): extractor = MultiTiffImagingExtractor( - file_paths=[ - OPHYS_DATA_PATH / "imaging_datasets" / "Tif" / "splits" / f"split_{i}.tif" - for i in range(1, 11) - ], + file_paths=[OPHYS_DATA_PATH / "imaging_datasets" / "Tif" / "splits" / f"split_{i}.tif" for i in range(1, 11)], sampling_frequency=1.0, )