Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small bugfix #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/iblphotometry/qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from iblphotometry.processing import make_sliding_window
from iblphotometry.pipelines import run_pipeline
from brainbox.io.one import SessionLoader

Check failure on line 13 in src/iblphotometry/qc.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

src/iblphotometry/qc.py:13:29: F401 `brainbox.io.one.SessionLoader` imported but unused

logger = logging.getLogger()

Expand Down Expand Up @@ -65,7 +65,7 @@
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
Expand Down Expand Up @@ -121,15 +121,15 @@

# 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]
Expand Down
Loading