-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from catalystneuro/tutorial
Add tutorial
- Loading branch information
Showing
5 changed files
with
534 additions
and
41 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/higley_lab_to_nwb/benisty_2022/benisty_2022_convert_all_sessions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""Primary script to run to convert an entire session for of data using the NWBConverter.""" | ||
|
||
from pathlib import Path | ||
from typing import Union | ||
import os | ||
from benisty_2022_convert_session import session_to_nwb | ||
|
||
|
||
|
||
# Parameters for conversion | ||
root_path = Path("/media/amtra/Samsung_T5/CN_data") | ||
data_dir_path = root_path / "Higley-CN-data-share" | ||
output_dir_path = root_path / "Higley-conversion_nwb/" | ||
|
||
session_ids = os.listdir(data_dir_path) | ||
stub_test = True | ||
for session_id in session_ids: | ||
session_folder = data_dir_path / Path(session_id) | ||
if os.path.isdir(session_folder): | ||
session_to_nwb( | ||
folder_path=session_folder, | ||
output_dir_path=output_dir_path, | ||
session_id=session_id, | ||
stub_test=stub_test, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+526 KB
src/higley_lab_to_nwb/benisty_2022/tutorial/conversion_outline_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.