From da5090fd59d0178fee4fe04effd020cb3d36d225 Mon Sep 17 00:00:00 2001 From: Georg Raiser Date: Tue, 17 Dec 2024 09:21:37 +0000 Subject: [PATCH] small bugfix --- src/iblphotometry/qc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/iblphotometry/qc.py b/src/iblphotometry/qc.py index 7d9c7bd..64114fc 100644 --- a/src/iblphotometry/qc.py +++ b/src/iblphotometry/qc.py @@ -65,7 +65,7 @@ def eval_metric( S = sliding_metric( F, metric=metric, **sliding_kwargs, metric_kwargs=metric_kwargs ) - r, p = linregress(S.times(), S.values)[2:4] + r, p = linregress(S.index.values, S.values)[2:4] else: r = np.nan p = np.nan @@ -121,15 +121,15 @@ def run_qc( # get behavioral data # TODO this should be provided - sl = SessionLoader(eid=eid, one=data_loader.one) + # sl = SessionLoader(eid=eid, one=data_loader.one) # for caroline # trials = sl.load_trials( # collection='alf/task_00' # ) # this is necessary fo caroline - trials = sl.load_trials() # should be good for all others + # trials = sl.load_trials() # should be good for all others # the old way - # trials = data_loader.one.load_dataset(eid, '*trials.table.pqt') + trials = data_loader.one.load_dataset(eid, '*trials.table.pqt') for band in signal_bands: raw_tf = raw_dfs[band]