diff --git a/src/ibl_to_nwb/_scripts/convert_brainwide_map_processed_only_local_testing.py b/src/ibl_to_nwb/_scripts/convert_brainwide_map_processed_only_local_testing.py index 836c8a8..29c991f 100644 --- a/src/ibl_to_nwb/_scripts/convert_brainwide_map_processed_only_local_testing.py +++ b/src/ibl_to_nwb/_scripts/convert_brainwide_map_processed_only_local_testing.py @@ -25,9 +25,8 @@ base_path = Path.home() / "ibl_scratch" # local directory session = "caa5dddc-9290-4e27-9f5e-575ba3598614" # a BWM session with dual probe - nwbfile_path = base_path / "nwbfiles" / session / f"{session}.nwb" -nwbfile_path.parent.mkdir(exist_ok=True) +nwbfile_path.parent.mkdir(exist_ok=True, parents=True) stub_test: bool = False cleanup: bool = False diff --git a/src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py b/src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py index b698da3..dc7dc68 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=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 18c478f..2d5401d 100644 --- a/src/ibl_to_nwb/datainterfaces/_ibl_sorting_interface.py +++ b/src/ibl_to_nwb/datainterfaces/_ibl_sorting_interface.py @@ -1,6 +1,8 @@ """The interface for loading spike sorted data via ONE access.""" from pathlib import Path +from typing import Optional +from pydantic import DirectoryPath from neuroconv.datainterfaces.ecephys.basesortingextractorinterface import ( BaseSortingExtractorInterface, @@ -13,6 +15,7 @@ class IblSortingInterface(BaseSortingExtractorInterface): Extractor = IblSortingExtractor + def get_metadata(self) -> dict: metadata = super().get_metadata() @@ -27,3 +30,8 @@ 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