Skip to content

Commit

Permalink
removed redundant module docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
pauladkisson committed May 22, 2024
1 parent da86f91 commit 9b33075
Show file tree
Hide file tree
Showing 39 changed files with 3 additions and 393 deletions.
2 changes: 0 additions & 2 deletions src/roiextractors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""Python-based module for extracting from, converting between, and handling recorded and optical imaging data from several file formats."""

from importlib.metadata import version

__version__ = version("roiextractors")
Expand Down
13 changes: 0 additions & 13 deletions src/roiextractors/example_datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
"""Toy example ImagingExtractor and SegmentationExtractor for testing.
Modules
-------
toy_example
Create a toy example of an ImagingExtractor and a SegmentationExtractor.
Functions
---------
toy_example
Create a toy example of an ImagingExtractor and a SegmentationExtractor.
"""

from .toy_example import toy_example
8 changes: 1 addition & 7 deletions src/roiextractors/example_datasets/toy_example.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
"""Toy example ImagingExtractor and SegmentationExtractor for testing.
Functions
---------
toy_example
Create a toy example of an ImagingExtractor and a SegmentationExtractor.
"""
"""Toy example ImagingExtractor and SegmentationExtractor for testing."""

import numpy as np

Expand Down
8 changes: 1 addition & 7 deletions src/roiextractors/extraction_tools.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
"""Various tools for extraction of ROIs from imaging data.
Classes
-------
VideoStructure
A data class for specifying the structure of a video.
"""
"""Various tools for extraction of ROIs from imaging data."""

import sys
import importlib.util
Expand Down
1 change: 0 additions & 1 deletion src/roiextractors/extractors/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
"""All specialized ImagingExtractors and SegmentationExtractors are defined here."""
13 changes: 0 additions & 13 deletions src/roiextractors/extractors/caiman/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
"""A Segmentation Extractor for Caiman.
Modules
-------
caimansegmentationextractor
A Segmentation Extractor for Caiman.
Classes
-------
CaimanSegmentationExtractor
A class for extracting segmentation from Caiman output.
"""

from .caimansegmentationextractor import CaimanSegmentationExtractor
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
"""A SegmentationExtractor for CaImAn.
Classes
-------
CaimanSegmentationExtractor
A class for extracting segmentation from CaImAn output.
"""

from pathlib import Path

try:
Expand Down
14 changes: 0 additions & 14 deletions src/roiextractors/extractors/hdf5imagingextractor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
"""An imaging extractor for HDF5.
Modules
-------
hdf5imagingextractor
An imaging extractor for HDF5.
Classes
-------
Hdf5ImagingExtractor
An imaging extractor for HDF5.
"""

from .hdf5imagingextractor import Hdf5ImagingExtractor
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
"""An imaging extractor for HDF5.
Classes
-------
Hdf5ImagingExtractor
An imaging extractor for HDF5.
"""

from pathlib import Path
from typing import Optional, Tuple
from warnings import warn
Expand Down
2 changes: 0 additions & 2 deletions src/roiextractors/extractors/inscopixextractors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
"""Defines extactors for Inscopix data."""

from .inscopiximagingextractor import InscopixImagingExtractor
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"""Inscopix Imaging Extractor."""

import warnings
from typing import Optional, Tuple

Expand Down
17 changes: 1 addition & 16 deletions src/roiextractors/extractors/memmapextractors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
"""Defines memmap-based ImagingExtractors. Currently, only numpy.memmap is supported.
Modules
-------
memmapextractors
The base class for memmapable imaging extractors.
numpymemampextractor
The class for reading optical imaging data stored in a binary format with numpy.memmap.
Classes
-------
MemmapImagingExtractor
The base class for memmapable imaging extractors.
NumpyMemmapImagingExtractor
The class for reading optical imaging data stored in a binary format with numpy.memmap.
"""
"""Defines memmap-based ImagingExtractors. Currently, only numpy.memmap is supported."""

from .memmapextractors import MemmapImagingExtractor
from .numpymemampextractor import NumpyMemmapImagingExtractor
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
"""Defines the base class for memmapable imaging extractors.
Classes
-------
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
@@ -1,11 +1,3 @@
"""NumpyMemmapImagingExtractor class.
Classes
-------
NumpyMemmapImagingExtractor
The class for reading optical imaging data stored in a binary format with numpy.memmap.
"""

import os
from pathlib import Path

Expand Down
13 changes: 0 additions & 13 deletions src/roiextractors/extractors/miniscopeimagingextractor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
"""An ImagingExtractor for the Miniscope video (.avi) format.
Modules
-------
miniscopeimagingextractor
An ImagingExtractor for the Miniscope video (.avi) format.
Classes
-------
MiniscopeImagingExtractor
An ImagingExtractor for the Miniscope video (.avi) format.
"""

from .miniscopeimagingextractor import MiniscopeImagingExtractor
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
"""MiniscopeImagingExtractor class.
Classes
-------
MiniscopeImagingExtractor
An ImagingExtractor for the Miniscope video (.avi) format.
"""

import json
import re
from pathlib import Path
Expand Down
15 changes: 0 additions & 15 deletions src/roiextractors/extractors/numpyextractors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
"""Imaging and Segmenation Extractors for .npy files.
Modules
-------
numpyextractors
Imaging and Segmenation Extractors for .npy files.
Classes
-------
NumpyImagingExtractor
An ImagingExtractor specified by timeseries .npy file, sampling frequency, and channel names.
NumpySegmentationExtractor
A Segmentation extractor specified by image masks and traces .npy files.
"""

from .numpyextractors import NumpyImagingExtractor, NumpySegmentationExtractor
10 changes: 0 additions & 10 deletions src/roiextractors/extractors/numpyextractors/numpyextractors.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
"""Imaging and Segmenation Extractors for .npy files.
Classes
-------
NumpyImagingExtractor
An ImagingExtractor specified by timeseries .npy file, sampling frequency, and channel names.
NumpySegmentationExtractor
A Segmentation extractor specified by image masks and traces .npy files.
"""

from pathlib import Path
from typing import Optional, Tuple

Expand Down
15 changes: 0 additions & 15 deletions src/roiextractors/extractors/nwbextractors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
"""Imaging and segmentation extractors for NWB files.
Modules
-------
nwbextractors
Imaging and segmentation extractors for NWB files.
Classes
-------
NwbImagingExtractor
Extracts imaging data from NWB files.
NwbSegmentationExtractor
Extracts segmentation data from NWB files.
"""

from .nwbextractors import NwbImagingExtractor, NwbSegmentationExtractor
10 changes: 0 additions & 10 deletions src/roiextractors/extractors/nwbextractors/nwbextractors.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
"""Imaging and segmentation extractors for NWB files.
Classes
-------
NwbImagingExtractor
Extracts imaging data from NWB files.
NwbSegmentationExtractor
Extracts segmentation data from NWB files.
"""

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

Expand Down
13 changes: 0 additions & 13 deletions src/roiextractors/extractors/sbximagingextractor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
"""A segmentation extractor for Scanbox imaging data.
Modules
-------
sbximagingextractor
A segmentation extractor for Scanbox imaging data.
Classes
-------
SbxImagingExtractor
An ImagingExtractor for Scanbox Image files.
"""

from .sbximagingextractor import SbxImagingExtractor
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
"""Imaging Extractors for Scanbox files.
Classes
-------
SbxImagingExtractor
An ImagingExtractor for Scanbox Image files.
"""

from multiprocessing.sharedctypes import Value
import os
from pathlib import Path
Expand Down
21 changes: 0 additions & 21 deletions src/roiextractors/extractors/schnitzerextractor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
"""Segmentation extractors for CNMF-E and EXTRACT ROI segmentation method.
Modules
-------
cnmfesegmentationextractor
A segmentation extractor for CNMF-E ROI segmentation method.
extractsegmentationextractor
A segmentation extractor for EXTRACT segmentation method.
Classes
-------
CnmfeSegmentationExtractor
A segmentation extractor for CNMF-E ROI segmentation method.
ExtractSegmentationExtractor
Abstract class that defines which EXTRACT class to use for a given file (new vs old).
NewExtractSegmentationExtractor
Extractor for reading the segmentation data that results from calls to newer versions of EXTRACT.
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
@@ -1,11 +1,3 @@
"""A segmentation extractor for CNMF-E ROI segmentation method.
Classes
-------
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
@@ -1,15 +1,3 @@
"""Extractor for reading the segmentation data that results from calls to EXTRACT.
Classes
-------
ExtractSegmentationExtractor
Abstract class that defines which extractor class to use for a given file.
NewExtractSegmentationExtractor
Extractor for reading the segmentation data that results from calls to newer versions of EXTRACT.
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
13 changes: 0 additions & 13 deletions src/roiextractors/extractors/simaextractor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
"""A segmentation extractor for Sima.
Modules
-------
simasegmentationextractor
A segmentation extractor for Sima.
Classes
-------
SimaSegmentationExtractor
A segmentation extractor for Sima.
"""

from .simasegmentationextractor import SimaSegmentationExtractor
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
"""A segmentation extractor for Sima.
Classes
-------
SimaSegmentationExtractor
A segmentation extractor for Sima.
"""

import os
import pickle
import re
Expand Down
13 changes: 0 additions & 13 deletions src/roiextractors/extractors/suite2p/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
"""A segmentation extractor for Suite2p.
Modules
-------
suite2psegmentationextractor
A segmentation extractor for Suite2p.
Classes
-------
Suite2pSegmentationExtractor
A segmentation extractor for Suite2p.
"""

from .suite2psegmentationextractor import Suite2pSegmentationExtractor
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
"""A segmentation extractor for Suite2p.
Classes
-------
Suite2pSegmentationExtractor
A segmentation extractor for Suite2p.
"""

import shutil
from pathlib import Path
from typing import Optional
Expand Down
Loading

0 comments on commit 9b33075

Please sign in to comment.