-
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.
add multi-segment error and test case.
- Loading branch information
1 parent
7b263fe
commit df80034
Showing
30 changed files
with
25,683 additions
and
6 deletions.
There are no files selected for viewing
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
File renamed without changes.
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,24 @@ | ||
from pathlib import Path | ||
|
||
from spikeinterface import generate_ground_truth_recording | ||
|
||
print("Starting...") | ||
|
||
sessions_and_runs = {"ses-001": ["ses-001_run-001", "ses-001_run-002"]} | ||
|
||
sub = "sub-001_type-multiseg" | ||
|
||
base_path = Path(__file__).parent.resolve() / "rawdata" | ||
|
||
for ses in sessions_and_runs.keys(): | ||
for run in sessions_and_runs[ses]: | ||
num_channels = 384 | ||
# if seg too small will error | ||
# TODO: issue on SI default durations as list on generate | ||
recording, _ = generate_ground_truth_recording( | ||
durations=[0.1, 0.1, 0.1], num_channels=num_channels, num_units=2 | ||
) | ||
|
||
output_path = base_path / sub / ses / "ephys" / run | ||
|
||
recording.save(folder=output_path, chunk_size=1000000, overwrite=True) |
Oops, something went wrong.