Skip to content

Commit 09b3b3e

Browse files
flake
1 parent 56f6590 commit 09b3b3e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

brainbox/io/one.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,8 @@ def load_pose(self, likelihood_thr=0.9, views=['left', 'right', 'body'], tracker
15721572
tracker = 'lightningPose' if tracker in ['lp', 'litpose'] else tracker
15731573
self.pose = {}
15741574
for view in views:
1575-
pose_raw = self.one.load_object(self.eid, f'{view}Camera', attribute=[tracker, 'times'], revision=self.revision or None)
1575+
pose_raw = self.one.load_object(
1576+
self.eid, f'{view}Camera', attribute=[tracker, 'times'], revision=self.revision or None)
15761577
# Double check if video timestamps are correct length or can be fixed
15771578
times_fixed, dlc = self._check_video_timestamps(view, pose_raw['times'], pose_raw[tracker])
15781579
self.pose[f'{view}Camera'] = likelihood_threshold(dlc, likelihood_thr)

ibllib/oneibl/patcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def patch_dataset(self, file_list, dry=False, ftp=False, force=False, **kwargs):
682682
_logger.error(f'Files: {", ".join([f.name for f in file_list])} already exist, to overwrite set force=True')
683683
return
684684

685-
response = super().patch_dataset(file_list, dry=dry, repository=self.s3_repo, ftp=False, force=force, **kwargs)
685+
response = super().patch_dataset(file_list, dry=dry, repository=self.s3_repo, ftp=False, force=force, **kwargs)
686686
# TODO in an ideal case the flatiron filerecord won't be altered when we register this dataset. This requires
687687
# changing the the alyx.data.register_view
688688
for ds in response:

ibllib/pipes/video_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ def signature(self):
828828
# the following are required for the LP plot only
829829
# they are not strictly required, some plots just might be skipped
830830
# In particular the raw videos don't need to be downloaded as they can be streamed
831-
# [(f'_iblrig_{cam}Camera.raw.mp4', self.device_collection, True) for cam in self.cameras] +
831+
# [(f'_iblrig_{cam}Camera.raw.mp4', self.device_collection, True) for cam in self.cameras] +
832832
[(f'{cam}ROIMotionEnergy.position.npy', 'alf', False) for cam in self.cameras] +
833833
[(f'{cam}Camera.ROIMotionEnergy.npy', 'alf', False) for cam in self.cameras] +
834834
# The trials table is used in the LP QC, however this is not an essential dataset

ibllib/tests/qc/test_dlc_qc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ def test_check_lick_detection(self):
106106
outcome = self.qc.check_lick_detection()
107107
self.assertEqual('NOT_SET', outcome)
108108
self.qc.side = 'left'
109-
self.qc.data['pose_coords'] = {'tongue_end_l': np.ones((2, 10)),
110-
'tongue_end_r': np.ones((2, 10))}
109+
self.qc.data['pose_coords'] = {'tongue_end_l': np.ones((2, 10)), 'tongue_end_r': np.ones((2, 10))}
111110
outcome = self.qc.check_lick_detection()
112111
self.assertEqual('FAIL', outcome)
113112
self.qc.data['pose_coords']['tongue_end_l'] *= np.nan

0 commit comments

Comments
 (0)