Skip to content

Commit

Permalink
Fix copying for behavior.pkl files
Browse files Browse the repository at this point in the history
  • Loading branch information
bjhardcastle authored Jan 7, 2025
1 parent be3b5c5 commit 6c2d488
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/np_workflows/shared/base_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ def copy_data_files(self) -> None:
for _ in ('opto', 'main', 'mapping', 'behavior'):
if _ in file.name:
renamed = f'{self.session.folder}.{"stim" if _ == "main" else _}.pkl'
elif self.contains_uuid(file.name):
break
else:
if self.contains_uuid(file.name):
renamed = f'{self.session.folder}.behavior.pkl'
elif file.suffix in ('.json', '.mp4') and (cam_label := re.match('Behavior|Eye|Face',file.name)):
renamed = f'{self.session.folder}.{cam_label.group().lower()}{file.suffix}'
Expand Down

0 comments on commit 6c2d488

Please sign in to comment.