From c9d71270de4cde47929723f3e2aeccdf458240c2 Mon Sep 17 00:00:00 2001 From: Mayo Faulkner Date: Thu, 12 Oct 2023 10:11:26 +0100 Subject: [PATCH] better logging and release notes --- ibllib/io/extractors/camera.py | 6 +++--- release_notes.md | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ibllib/io/extractors/camera.py b/ibllib/io/extractors/camera.py index 5aa353adf..7612c3e9e 100644 --- a/ibllib/io/extractors/camera.py +++ b/ibllib/io/extractors/camera.py @@ -160,13 +160,13 @@ def _extract(self, sync=None, chmap=None, video_path=None, sync_label='audio', motion_class = vmotion.MotionAlignmentFullSession(self.session_path, self.label, sync='nidq', upload=True) new_times = motion_class.process() if not motion_class.qc_outcome: - raise ValueError(f'Wheel alignment failed to pass qc: {motion_class.qc}') + raise ValueError(f'Wheel alignment for {self.label} camera failed to pass qc: {motion_class.qc}') else: - _logger.warning(f'Wheel alignment successful, qc: {motion_class.qc}') + _logger.warning(f'Wheel alignment for {self.label} camera successful, qc: {motion_class.qc}') return new_times except Exception as err: - _logger.critical(f'Failed to align with wheel: {err}') + _logger.critical(f'Failed to align with wheel for {self.label} camera: {err}') if length < raw_ts.size: df = raw_ts.size - length diff --git a/release_notes.md b/release_notes.md index beeb99179..a7aab07df 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,3 +1,7 @@ +## Develop +- Add full video wheel motion alignment code to ibllib.io.extractors.video_motion module +- Change FPGA camera extractor to attempt wheel alignment if audio alignment fails + ## Release Notes 2.26 ### features