@@ -190,7 +190,8 @@ def run_qc(self, camera_data=None, update=True):
190190 if camera_data is None :
191191 camera_data , _ = self .extract_camera (save = False )
192192 qc = run_camera_qc (
193- self .session_path , self .cameras , one = self .one , camlog = True , sync_collection = self .sync_collection , sync_type = self .sync )
193+ self .session_path , self .cameras , one = self .one , camlog = True , sync_collection = self .sync_collection , sync_type = self .sync ,
194+ update = update )
194195 return qc
195196
196197 def _run (self , update = True , ** kwargs ):
@@ -284,7 +285,8 @@ def signature(self):
284285 [(f'_{ self .sync_namespace } _sync.channels.npy' , self .sync_collection , True ),
285286 (f'_{ self .sync_namespace } _sync.polarities.npy' , self .sync_collection , True ),
286287 (f'_{ self .sync_namespace } _sync.times.npy' , self .sync_collection , True ),
287- ('*.wiring.json' , self .sync_collection , True ),
288+ (f'_{ self .sync_namespace } _*.wiring.json' , self .sync_collection , False ),
289+ (f'_{ self .sync_namespace } _*.meta' , self .sync_collection , True ),
288290 ('*wheel.position.npy' , 'alf' , False ),
289291 ('*wheel.timestamps.npy' , 'alf' , False ),
290292 ('*experiment.description*' , '' , False )],
@@ -308,7 +310,8 @@ def run_qc(self, camera_data=None, update=True):
308310 if camera_data is None :
309311 camera_data , _ = self .extract_camera (save = False )
310312 qc = run_camera_qc (
311- self .session_path , self .cameras , one = self .one , sync_collection = self .sync_collection , sync_type = self .sync )
313+ self .session_path , self .cameras , one = self .one , sync_collection = self .sync_collection , sync_type = self .sync ,
314+ update = update )
312315 return qc
313316
314317 def _run (self , update = True , ** kwargs ):
@@ -347,7 +350,7 @@ def signature(self):
347350 'input_files' : [(f'_iblrig_{ cam } Camera.raw.mp4' , self .device_collection , True ) for cam in self .cameras ],
348351 'output_files' : [(f'_ibl_{ cam } Camera.dlc.pqt' , 'alf' , True ) for cam in self .cameras ] +
349352 [(f'{ cam } Camera.ROIMotionEnergy.npy' , 'alf' , True ) for cam in self .cameras ] +
350- [(f'{ cam } ROIMotionEnergy.position.npy' , 'alf' , True )for cam in self .cameras ]
353+ [(f'{ cam } ROIMotionEnergy.position.npy' , 'alf' , True ) for cam in self .cameras ]
351354 }
352355
353356 return signature
@@ -504,8 +507,11 @@ def signature(self):
504507 # In particular the raw videos don't need to be downloaded as they can be streamed
505508 [(f'_iblrig_{ cam } Camera.raw.mp4' , self .device_collection , True ) for cam in self .cameras ] +
506509 [(f'{ cam } ROIMotionEnergy.position.npy' , 'alf' , False ) for cam in self .cameras ] +
510+ [(f'{ cam } Camera.ROIMotionEnergy.npy' , 'alf' , False ) for cam in self .cameras ] +
507511 # The trials table is used in the DLC QC, however this is not an essential dataset
508- [('_ibl_trials.table.pqt' , self .trials_collection , False )],
512+ [('_ibl_trials.table.pqt' , self .trials_collection , False ),
513+ ('_ibl_wheel.position.npy' , self .trials_collection , False ),
514+ ('_ibl_wheel.timestamps.npy' , self .trials_collection , False )],
509515 'output_files' : [(f'_ibl_{ cam } Camera.features.pqt' , 'alf' , True ) for cam in self .cameras ] +
510516 [('licks.times.npy' , 'alf' , True )]
511517 }
@@ -522,7 +528,7 @@ def _run(self, overwrite=True, run_qc=True, plot_qc=True):
522528
523529 """
524530 # Check if output files exist locally
525- exist , output_files = self .assert_expected (self .signature [ ' output_files' ] , silent = True )
531+ exist , output_files = self .assert_expected (self .output_files , silent = True )
526532 if exist and not overwrite :
527533 _logger .warning ('EphysPostDLC outputs exist and overwrite=False, skipping computations of outputs.' )
528534 else :
0 commit comments