Skip to content

Commit

Permalink
skip trials with offending session path / file path
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Jul 28, 2023
1 parent c58fb51 commit 259b88d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iblrig/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def transfer_data():
for flag in list(local_subjects_path.rglob('transfer_me.flag')):
session_path = flag.parent
task_settings = raw_data_loaders.load_settings(session_path, task_collection='raw_task_data_00')
if task_settings['NTRIALS'] < 42:
if task_settings is None or task_settings['NTRIALS'] < 42:
print('Skipping {}'.format(session_path))
continue
sc = SessionCopier(session_path, remote_subjects_folder=remote_subjects_path)
state = sc.get_state()
Expand Down

0 comments on commit 259b88d

Please sign in to comment.