Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2024
1 parent b640ee6 commit 6487907
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ dmypy.json
#misc
endpoint_schemas/
tests/
src/local
src/local
2 changes: 1 addition & 1 deletion src/ibl_to_nwb/datainterfaces/_brainwide_map_trials.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from pathlib import Path
from typing import Optional

from brainbox.io.one import SessionLoader
from hdmf.common import VectorData
from neuroconv.basedatainterface import BaseDataInterface
from neuroconv.utils import load_dict_from_file
from one.api import ONE
from pynwb import NWBFile
from pynwb.epoch import TimeIntervals
from brainbox.io.one import SessionLoader


class BrainwideMapTrialsInterface(BaseDataInterface):
Expand Down
5 changes: 2 additions & 3 deletions src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@

import numpy as np
import pandas as pd
from pydantic import DirectoryPath
from spikeinterface import BaseSorting, BaseSortingSegment
from one.api import ONE
from brainbox.io.one import SpikeSortingLoader
from iblatlas.atlas import AllenAtlas
from iblatlas.regions import BrainRegions
from one.api import ONE
from spikeinterface import BaseSorting, BaseSortingSegment


class IblSortingExtractor(BaseSorting):
Expand Down
5 changes: 2 additions & 3 deletions src/ibl_to_nwb/datainterfaces/_ibl_sorting_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
BaseSortingExtractorInterface,
)
from neuroconv.utils import load_dict_from_file
from pydantic import DirectoryPath
from one.api import ONE

from ._ibl_sorting_extractor import IblSortingExtractor
from one.api import ONE


class IblSortingInterface(BaseSortingExtractorInterface):
Extractor = IblSortingExtractor
Expand Down Expand Up @@ -40,4 +40,3 @@ def get_metadata(self) -> dict:
)

return metadata

2 changes: 1 addition & 1 deletion src/ibl_to_nwb/datainterfaces/_lick_times.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from one.api import ONE
from pynwb import NWBFile
from pynwb.file import DynamicTable
from brainbox.io.one import SessionLoader


class LickInterface(BaseDataInterface):
def __init__(self, one: ONE, session: str, revision: Optional[str] = None):
Expand Down
5 changes: 3 additions & 2 deletions src/ibl_to_nwb/datainterfaces/_pupil_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
from typing import Optional

import numpy as np
from brainbox.io.one import SessionLoader
from neuroconv.basedatainterface import BaseDataInterface
from neuroconv.tools.nwb_helpers import get_module
from neuroconv.utils import load_dict_from_file
from one.api import ONE
from pynwb import TimeSeries
from pynwb.behavior import PupilTracking
from brainbox.io.one import SessionLoader


class PupilTrackingInterface(BaseDataInterface):
def __init__(self, one: ONE, session: str, camera_name: str, revision: Optional[str] = None):
Expand All @@ -26,7 +27,7 @@ def get_metadata(self) -> dict:

pupils_metadata = load_dict_from_file(file_path=Path(__file__).parent.parent / "_metadata" / "pupils.yml")
metadata.update(pupils_metadata)

return metadata

def add_to_nwbfile(self, nwbfile, metadata: dict):
Expand Down
3 changes: 2 additions & 1 deletion src/ibl_to_nwb/datainterfaces/_wheel_movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
from typing import Optional

from brainbox.behavior import wheel as wheel_methods
from brainbox.io.one import SessionLoader
from neuroconv.basedatainterface import BaseDataInterface
from neuroconv.tools.nwb_helpers import get_module
from neuroconv.utils import load_dict_from_file
from one.api import ONE
from pynwb import TimeSeries
from pynwb.behavior import CompassDirection, SpatialSeries
from pynwb.epoch import TimeIntervals
from brainbox.io.one import SessionLoader


class WheelInterface(BaseDataInterface):
def __init__(self, one: ONE, session: str, revision: Optional[str] = None):
Expand Down

0 comments on commit 6487907

Please sign in to comment.