From c58da111c8a59a14fe3624797c348ac40b3321e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:08:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../datainterfaces/_ibl_sorting_extractor.py | 2 +- .../datainterfaces/_ibl_sorting_interface.py | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py b/src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py index ad5777c..54e374c 100644 --- a/src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py +++ b/src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py @@ -16,7 +16,7 @@ class IblSortingExtractor(BaseSorting): installation_mesg = "" name = "iblsorting" - def __init__(self, session: str, cache_folder: Optional[DirectoryPath] = None, revision: Optional[str]=None): + def __init__(self, session: str, cache_folder: Optional[DirectoryPath] = None, revision: Optional[str] = None): from brainbox.io.one import SpikeSortingLoader from iblatlas.atlas import AllenAtlas from iblatlas.regions import BrainRegions diff --git a/src/ibl_to_nwb/datainterfaces/_ibl_sorting_interface.py b/src/ibl_to_nwb/datainterfaces/_ibl_sorting_interface.py index 2d5401d..8f81e4f 100644 --- a/src/ibl_to_nwb/datainterfaces/_ibl_sorting_interface.py +++ b/src/ibl_to_nwb/datainterfaces/_ibl_sorting_interface.py @@ -2,12 +2,12 @@ from pathlib import Path from typing import Optional -from pydantic import DirectoryPath from neuroconv.datainterfaces.ecephys.basesortingextractorinterface import ( BaseSortingExtractorInterface, ) from neuroconv.utils import load_dict_from_file +from pydantic import DirectoryPath from ._ibl_sorting_extractor import IblSortingExtractor @@ -15,7 +15,6 @@ class IblSortingInterface(BaseSortingExtractorInterface): Extractor = IblSortingExtractor - def get_metadata(self) -> dict: metadata = super().get_metadata() @@ -31,7 +30,11 @@ def get_metadata(self) -> dict: return metadata - - - def __init__(self, session: str, cache_folder: Optional[DirectoryPath] = None, revision: Optional[str] = None, verbose: bool = False): - super().__init__(verbose, session=session, cache_folder=cache_folder, revision=revision) \ No newline at end of file + def __init__( + self, + session: str, + cache_folder: Optional[DirectoryPath] = None, + revision: Optional[str] = None, + verbose: bool = False, + ): + super().__init__(verbose, session=session, cache_folder=cache_folder, revision=revision)