Skip to content

Commit

Permalink
change nprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
mayofaulkner committed Oct 11, 2023
1 parent c8d6556 commit 6e59101
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ibllib/io/extractors/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down
4 changes: 2 additions & 2 deletions ibllib/io/extractors/video_motion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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([])
Expand Down

0 comments on commit 6e59101

Please sign in to comment.