Skip to content

Commit

Permalink
Raise error for multiple experiments/openephys folders
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Mar 15, 2024
1 parent 78898b1 commit 95d7ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expipe_plugin_cinpla/scripts/convert_old_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def convert_old_project(
openephys_folders = [p for p in acquisition_folder.iterdir() if p.is_dir()]
if len(openephys_folders) != 1:
print(f"Found {len(openephys_folders)} openephys folders in {acquisition_folder}!")
continue
raise ValueError("Expected to find exactly one openephys folder")
openephys_path = openephys_folders[0]
# here we assume the following action name: {entity_id}-{date}-{session}
entity_id = action_id.split("-")[0]
Expand Down

0 comments on commit 95d7ae7

Please sign in to comment.