Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/conversion_test' in…
Browse files Browse the repository at this point in the history
…to conversion_test
  • Loading branch information
h-mayorquin committed Dec 13, 2024
2 parents 6c80583 + c58da11 commit beae882
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 9 additions & 6 deletions src/ibl_to_nwb/datainterfaces/_ibl_sorting_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@

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


class IblSortingInterface(BaseSortingExtractorInterface):
Extractor = IblSortingExtractor


def get_metadata(self) -> dict:
metadata = super().get_metadata()

Expand All @@ -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)
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)

0 comments on commit beae882

Please sign in to comment.