Skip to content

Commit

Permalink
fix some autocorrections from src
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD committed Aug 13, 2024
1 parent 47e1ecb commit 430d391
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/nwbinspector/checks/ecephys.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from pynwb.misc import Units
from pynwb.ecephys import ElectricalSeries

from nwbinspector.utils._utils import get_data_shape

from ..utils import get_data_shape
from .._registration import register_check, Importance, InspectorMessage


Expand Down
2 changes: 1 addition & 1 deletion src/nwbinspector/checks/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pynwb.image import IndexSeries

from .._registration import register_check, Importance, InspectorMessage
from nwbinspector.utils._utils import get_package_version
from ..utils import get_package_version

# The Images neurodata type was unavailable prior to PyNWB v.2.1.0
if get_package_version(name="pynwb") >= Version("2.1.0"):
Expand Down
2 changes: 1 addition & 1 deletion src/nwbinspector/checks/nwbfile_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pynwb.file import Subject

from .._registration import register_check, InspectorMessage, Importance
from nwbinspector.utils._utils import is_module_installed
from ..utils import is_module_installed

duration_regex = (
r"^P(?!$)(\d+(?:\.\d+)?Y)?(\d+(?:\.\d+)?M)?(\d+(?:\.\d+)?W)?(\d+(?:\.\d+)?D)?(T(?=\d)(\d+(?:\.\d+)?H)?(\d+(?:\.\d+)"
Expand Down
3 changes: 1 addition & 2 deletions src/nwbinspector/checks/ophys.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
ImagingPlane,
)

from nwbinspector.utils._utils import get_data_shape

from ..utils import get_data_shape
from .._registration import register_check, Importance, InspectorMessage

MIN_LAMBDA = 10.0 # trigger warnings for wavelength values less than this value
Expand Down
2 changes: 1 addition & 1 deletion src/nwbinspector/checks/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pynwb.file import TimeIntervals, Units

from .._registration import register_check, InspectorMessage, Importance
from nwbinspector.utils._utils import (
from ..utils import (
cache_data_selection,
format_byte_size,
is_ascending_series,
Expand Down
2 changes: 1 addition & 1 deletion src/nwbinspector/checks/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pynwb.image import ImageSeries, IndexSeries

from .._registration import register_check, Importance, Severity, InspectorMessage
from nwbinspector.utils._utils import is_regular_series, is_ascending_series, get_data_shape
from ..utils import is_regular_series, is_ascending_series, get_data_shape


@register_check(importance=Importance.BEST_PRACTICE_VIOLATION, neurodata_type=TimeSeries)
Expand Down
2 changes: 1 addition & 1 deletion src/nwbinspector/tools/dandi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from concurrent.futures import ProcessPoolExecutor, as_completed


from nwbinspector.utils._utils import is_module_installed, calculate_number_of_cpu
from nwbinspector.utils import is_module_installed, calculate_number_of_cpu


def get_s3_urls_and_dandi_paths(dandiset_id: str, version_id: Optional[str] = None, n_jobs: int = 1) -> Dict[str, str]:
Expand Down

0 comments on commit 430d391

Please sign in to comment.