Skip to content

Commit

Permalink
for heberto
Browse files Browse the repository at this point in the history
grg2rsr committed Dec 18, 2024
1 parent a522cb5 commit cff20a5
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@

subject_folder_path = nwbfiles_folder_path / f"sub-{subject_id}"
subject_folder_path.mkdir(exist_ok=True)
nwbfile_path = subject_folder_path / f"sub-{subject_id}_ses-{eid}_desc-processed.nwb"
nwbfile_path = subject_folder_path / f"sub-{subject_id}_ses-{eid}_desc-processed_.nwb"

session_converter.run_conversion(
nwbfile_path=nwbfile_path,
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@

subject_folder_path = nwbfiles_folder_path / f"sub-{subject_id}"
subject_folder_path.mkdir(exist_ok=True)
nwbfile_path = subject_folder_path / f"sub-{subject_id}_ses-{eid}_desc-raw.nwb"
nwbfile_path = subject_folder_path / f"sub-{subject_id}_ses-{eid}_desc-raw_ecephys+raw_video_.nwb"

session_converter.run_conversion(nwbfile_path=nwbfile_path, metadata=metadata, overwrite=True)

12 changes: 12 additions & 0 deletions src/ibl_to_nwb/datainterfaces/_ibl_sorting_extractor.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
from iblatlas.regions import BrainRegions
from one.api import ONE
from spikeinterface import BaseSorting, BaseSortingSegment
from neuroconv.utils import get_json_schema_from_method_signature


class IblSortingExtractor(BaseSorting):
@@ -19,6 +20,17 @@ class IblSortingExtractor(BaseSorting):
installation_mesg = ""
name = "iblsorting"

def get_source_schema(cls) -> dict:
"""
Infer the JSON schema for the source_data from the method signature (annotation typing).
Returns
-------
dict
The JSON schema for the source_data.
"""
return get_json_schema_from_method_signature(cls, exclude=["source_data", "one"])

# def __init__(self, session: str, cache_folder: Optional[DirectoryPath] = None, revision: Optional[str] = None):
def __init__(
self,

0 comments on commit cff20a5

Please sign in to comment.