コード例 #1
0
    for i_eid in range(0, len(eIDs)):
        eid = eIDs[i_eid]
        outname = f'{eid}__extqc.npz'
        outfile = Path.joinpath(outdir, outname)

        if (eid not in list_eid_reject) and \
                (outname not in os.listdir(outdir)):
            # Show session number and start compute time counter for session
            print(
                f'Rig {i_ephysrig + 1} / {len(ephys_rig)} : {rig_location}'
                f' -- Sessions remaining: {len(eIDs)-len(os.listdir(outdir))-1}'
                f' -- {eid}')

            try:
                # -- Dowload data if necessary
                oneutils.download_bpodqc_raw_data(eid, one=one)

                ext = ExtendedQC(eid=eid, one=one, lazy=False)
                criteria, out_var_test_status, out_var_sess_status = \
                    compute_session_status(ext.frame)

                d = {
                    'sess_status': out_var_sess_status,
                    'eid': eid,
                    'rig_location': rig_location
                }
                sess_dataframe = pd.DataFrame(data=d, index=[0])

                # Append and save table
                app_token = {
                    'sess_details': sess_dataframe,
コード例 #2
0
 def test_BpodQC(self):
     # Make sure the data exists locally
     download_bpodqc_raw_data(self.eid, one=self.one)
     bpodqc = BpodQC(self.eid, one=self.one, lazy=False)
     self.assertTrue(bpodqc is not None)