def raw_ephys_qc(root_data_folder, dry=False, max_sessions=10, force=False): """ Computes raw electrophysiology QC """ qcflags = Path(root_data_folder).rglob('raw_ephys_qc.flag') c = 0 for qcflag in qcflags: session_path = qcflag.parent c += 1 if c >= max_sessions: return if dry: print(qcflag.parent) continue qc_files = ephysqc.raw_qc_session(session_path, dry=dry, force=force) qcflag.unlink() flags.write_flag_file(session_path.joinpath('register_me.flag'), file_list=qc_files)
def _run(self, overwrite=False): qc_files = ephysqc.raw_qc_session(self.session_path, overwrite=overwrite) return qc_files