Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#279)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 30, 2024
1 parent 1a136a5 commit f49355c
Show file tree
Hide file tree
Showing 38 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
exclude: ^docs/
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Python-based module for extracting from, converting between, and handling recorded and optical imaging data from several file formats."""

# Keeping __version__ accessible only to maintain backcompatability.
# Modern appraoch (Python >= 3.8) is to use importlib
try:
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/example_datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
toy_example
Create a toy example of an ImagingExtractor and a SegmentationExtractor.
"""

from .toy_example import toy_example
1 change: 1 addition & 0 deletions src/roiextractors/example_datasets/toy_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
toy_example
Create a toy example of an ImagingExtractor and a SegmentationExtractor.
"""

import numpy as np

from ..extractors.numpyextractors import (
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/extraction_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
VideoStructure
A data class for specifying the structure of a video.
"""

import sys
import importlib.util
from functools import wraps
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/extractorlist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Listing of available formats for extraction."""

from .extractors.caiman import CaimanSegmentationExtractor
from .extractors.hdf5imagingextractor import Hdf5ImagingExtractor
from .extractors.numpyextractors import (
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/extractors/caiman/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
CaimanSegmentationExtractor
A class for extracting segmentation from Caiman output.
"""

from .caimansegmentationextractor import CaimanSegmentationExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
CaimanSegmentationExtractor
A class for extracting segmentation from CaImAn output.
"""

from pathlib import Path

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
Hdf5ImagingExtractor
An imaging extractor for HDF5.
"""

from .hdf5imagingextractor import Hdf5ImagingExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Hdf5ImagingExtractor
An imaging extractor for HDF5.
"""

from pathlib import Path
from typing import Optional, Tuple
from warnings import warn
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/extractors/memmapextractors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
NumpyMemmapImagingExtractor
The class for reading optical imaging data stored in a binary format with numpy.memmap.
"""

from .memmapextractors import MemmapImagingExtractor
from .numpymemampextractor import NumpyMemmapImagingExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
MemmapImagingExtractor
The base class for memmapable imaging extractors.
"""

from pathlib import Path

import numpy as np
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
NumpyMemmapImagingExtractor
The class for reading optical imaging data stored in a binary format with numpy.memmap.
"""

import os
from pathlib import Path
from typing import Tuple, Dict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
MiniscopeImagingExtractor
An ImagingExtractor for the Miniscope video (.avi) format.
"""

from .miniscopeimagingextractor import MiniscopeImagingExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
MiniscopeImagingExtractor
An ImagingExtractor for the Miniscope video (.avi) format.
"""

import json
import re
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/extractors/numpyextractors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
NumpySegmentationExtractor
A Segmentation extractor specified by image masks and traces .npy files.
"""

from .numpyextractors import NumpyImagingExtractor, NumpySegmentationExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
NumpySegmentationExtractor
A Segmentation extractor specified by image masks and traces .npy files.
"""

from pathlib import Path
from typing import Optional, Tuple

Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/extractors/nwbextractors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
NwbSegmentationExtractor
Extracts segmentation data from NWB files.
"""

from .nwbextractors import NwbImagingExtractor, NwbSegmentationExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
NwbSegmentationExtractor
Extracts segmentation data from NWB files.
"""

from pathlib import Path
from typing import Union, Optional, Iterable, Tuple

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
SbxImagingExtractor
An ImagingExtractor for Scanbox Image files.
"""

from .sbximagingextractor import SbxImagingExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
SbxImagingExtractor
An ImagingExtractor for Scanbox Image files.
"""

from multiprocessing.sharedctypes import Value
import os
from pathlib import Path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
LegacyExtractSegmentationExtractor
Extractor for reading the segmentation data that results from calls to older versions of EXTRACT.
"""

from .cnmfesegmentationextractor import CnmfeSegmentationExtractor
from .extractsegmentationextractor import (
LegacyExtractSegmentationExtractor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
CnmfeSegmentationExtractor
A segmentation extractor for CNMF-E ROI segmentation method.
"""

from pathlib import Path

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
LegacyExtractSegmentationExtractor
Extractor for reading the segmentation data that results from calls to older versions of EXTRACT.
"""

from abc import ABC
from pathlib import Path
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/extractors/simaextractor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
SimaSegmentationExtractor
A segmentation extractor for Sima.
"""

from .simasegmentationextractor import SimaSegmentationExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
SimaSegmentationExtractor
A segmentation extractor for Sima.
"""

import os
import pickle
import re
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/extractors/suite2p/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
Suite2pSegmentationExtractor
A segmentation extractor for Suite2p.
"""

from .suite2psegmentationextractor import Suite2pSegmentationExtractor
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Suite2pSegmentationExtractor
A segmentation extractor for Suite2p.
"""

import shutil
from pathlib import Path
from typing import Optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
MicroManagerTiffImagingExtractor
Specialized extractor for reading TIFF files produced via Micro-Manager.
"""

from .tiffimagingextractor import TiffImagingExtractor
from .scanimagetiffimagingextractor import (
ScanImageTiffImagingExtractor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
BrukerTiffMultiPlaneImagingExtractor
A MultiImagingExtractor for TIFF files produced by Bruker with multiple planes.
"""

import logging
import re
from collections import Counter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for ScanImage TIFF Extractors."""

import numpy as np
import json
from ...extraction_tools import PathType, get_package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
ScanImageTiffImagingExtractor
Specialized extractor for reading TIFF files produced via ScanImage.
"""

from pathlib import Path
from typing import Optional, Tuple, List, Iterable
from warnings import warn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
TiffImagingExtractor
A TIFF imaging extractor for TIFF files.
"""

from pathlib import Path
from typing import Optional
from warnings import warn
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/imagingextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
FrameSliceImagingExtractor
Class to get a lazy frame slice.
"""

from abc import ABC, abstractmethod
from typing import Union, Optional, Tuple
from copy import deepcopy
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/multiimagingextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
MultiImagingExtractor
This class is used to combine multiple ImagingExtractor objects by frames.
"""

from collections import defaultdict
from typing import Tuple, List, Iterable, Optional

Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/multisegmentationextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
MultiSegmentationExtractor
This class is used to combine multiple SegmentationExtractor objects by frames.
"""

import numpy as np

from .segmentationextractor import SegmentationExtractor
Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/segmentationextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
FrameSliceSegmentationExtractor
Class to get a lazy frame slice.
"""

from abc import ABC, abstractmethod
from typing import Union, Optional, Tuple, Iterable, List

Expand Down
1 change: 1 addition & 0 deletions src/roiextractors/testing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Testing utilities for the roiextractors package."""

from collections.abc import Iterable
from typing import Tuple, Optional

Expand Down

0 comments on commit f49355c

Please sign in to comment.