Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
themattinthehatt committed Dec 18, 2024
1 parent 4d208b4 commit 178e0f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ibllib/pipes/video_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def _run(self, overwrite=True, **kwargs):
# Run motion energy
# ---------------------------
t1 = time.time()
_logger.info(f'Computing motion energy for {cam}Camera')
_logger.info(f'Computing motion energy for {label}Camera')
command2run = f"{self.scripts.joinpath('run_motion.sh')} {str(self.env)} {mp4_file} {result}"
_logger.info(command2run)
process = subprocess.Popen(
Expand All @@ -778,7 +778,7 @@ def _run(self, overwrite=True, **kwargs):
if process.returncode != 0:
error_str = error.decode('utf-8').strip()
_logger.error(
f'Motion energy failed for {cam}Camera.\n\n'
f'Motion energy failed for {label}Camera.\n\n'
f'++++++++ Output of subprocess for debugging ++++++++\n\n'
f'{error_str}\n'
f'++++++++++++++++++++++++++++++++++++++++++++\n'
Expand All @@ -788,9 +788,9 @@ def _run(self, overwrite=True, **kwargs):
else:
_logger.info(f'{label} camera took {(time.time() - t1)} seconds')
actual_outputs.append(next(self.session_path.joinpath('alf').glob(
f'{cam}Camera.ROIMotionEnergy*.npy')))
f'{label}Camera.ROIMotionEnergy*.npy')))
actual_outputs.append(next(self.session_path.joinpath('alf').glob(
f'{cam}ROIMotionEnergy.position*.npy')))
f'{label}ROIMotionEnergy.position*.npy')))

except BaseException:
_logger.error(traceback.format_exc())
Expand Down

0 comments on commit 178e0f9

Please sign in to comment.