Skip to content

Commit

Permalink
Filename updates to make dandi uploading work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Watters authored and Nicholas Watters committed Dec 19, 2023
1 parent 3b8fbe0 commit 3245d46
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/jazayeri_lab_to_nwb/watters/get_session_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _get_session_paths_openmind(subject, session):
subject_id = SUBJECT_NAME_TO_ID[subject]

# Path to write output nwb files to
output_path = f"/om/user/nwatters/nwb_data_multi_prediction"
output_path = f"/om/user/nwatters/nwb_data_multi_prediction/staging/sub-{subject}"

# Path to the raw data. This is used for reading raw physiology data.
raw_data_path = f"/om4/group/jazlab/nwatters/multi_prediction/phys_data/{subject}/" f"{session}/raw_data"
Expand Down
10 changes: 7 additions & 3 deletions src/jazayeri_lab_to_nwb/watters/main_convert_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from neuroconv.utils import dict_deep_update, load_dict_from_file

# Data repository. Either 'globus' or 'openmind'
_REPO = "globus"
_REPO = "openmind"
# Whether to run all the physiology data or only a stub
_STUB_TEST = True
# Whether to overwrite output nwb files
Expand Down Expand Up @@ -199,8 +199,12 @@ def session_to_nwb(
session_id = f"{session}-stub"
else:
session_id = f"{session}"
raw_nwb_path = session_paths.output / f"{subject}_{session_id}_raw.nwb"
processed_nwb_path = session_paths.output / f"{subject}_{session_id}_processed.nwb"
raw_nwb_path = (
session_paths.output / f"sub-{subject}_ses-{session_id}_ecephys.nwb"
)
processed_nwb_path = (
session_paths.output / f"sub-{subject}_ses-{session_id}_behavior+ecephys.nwb"
)
logging.info(f"raw_nwb_path = {raw_nwb_path}")
logging.info(f"processed_nwb_path = {processed_nwb_path}")
logging.info("")
Expand Down
8 changes: 4 additions & 4 deletions src/jazayeri_lab_to_nwb/watters/nwb_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
from spikeinterface.core.waveform_tools import has_exceeding_spikes
from spikeinterface.curation import remove_excess_spikes

from .display_interface import DisplayInterface
from .recording_interface import DatRecordingInterface
from .timeseries_interface import (
from display_interface import DisplayInterface
from recording_interface import DatRecordingInterface
from timeseries_interface import (
AudioInterface,
EyePositionInterface,
PupilSizeInterface,
RewardLineInterface,
)
from .trials_interface import TrialsInterface
from trials_interface import TrialsInterface


class NWBConverter(NWBConverter):
Expand Down

0 comments on commit 3245d46

Please sign in to comment.