Skip to content

Commit

Permalink
Merge branch 'develop' into mesoscope_roi_uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Oct 16, 2023
2 parents 2ca8b46 + bfa88e5 commit 8727a86
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 11 deletions.
8 changes: 4 additions & 4 deletions ibllib/io/extractors/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,16 @@ def _extract(self, sync=None, chmap=None, video_path=None, sync_label='audio',
# Can only use wheel alignment for left and right cameras
raise ValueError(f'Wheel alignment not supported for {self.label} camera')

motion_class = vmotion.MotionAlignmentFullSession(self.session_path, self.label, upload=True)
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
Expand Down
Loading

0 comments on commit 8727a86

Please sign in to comment.