From 6e591014d3c7b6cb0fdbbe112fee3c4c5a6ee697 Mon Sep 17 00:00:00 2001 From: Mayo Faulkner Date: Wed, 11 Oct 2023 15:45:04 +0100 Subject: [PATCH] change nprocess --- ibllib/io/extractors/camera.py | 2 +- ibllib/io/extractors/video_motion.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ibllib/io/extractors/camera.py b/ibllib/io/extractors/camera.py index bf3c95528..5aa353adf 100644 --- a/ibllib/io/extractors/camera.py +++ b/ibllib/io/extractors/camera.py @@ -157,7 +157,7 @@ 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}') diff --git a/ibllib/io/extractors/video_motion.py b/ibllib/io/extractors/video_motion.py index 14de3b3f7..7afda4c87 100644 --- a/ibllib/io/extractors/video_motion.py +++ b/ibllib/io/extractors/video_motion.py @@ -1053,8 +1053,8 @@ def process(self): wg = WindowGenerator(all_me.size - 1, int(self.camera_meta['fps'] * self.twin), int(self.camera_meta['fps'] * toverlap)) - out = Parallel(n_jobs=self.nprocess)(delayed(self.compute_shifts)(times, all_me, first, last, iw, wg) - for iw, (first, last) in enumerate(wg.firstlast)) + out = Parallel(n_jobs=1)(delayed(self.compute_shifts)(times, all_me, first, last, iw, wg) + for iw, (first, last) in enumerate(wg.firstlast)) self.shifts = np.array([]) self.t_shifts = np.array([])