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

Load using revision last before #75

Merged
merged 1 commit into from
Jan 16, 2025
Merged
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
6 changes: 5 additions & 1 deletion brainwidemap/bwm_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
import brainwidemap


MODIFIED_BEFORE = '2024-07-10'
"""Load data last modified before this date."""


def bwm_query(one=None, alignment_resolved=True, return_details=False, freeze='2023_12_bwm_release'):
"""
Function to query for brainwide map sessions that pass the most important quality controls. Returns a dataframe
Expand Down Expand Up @@ -270,7 +274,7 @@ def load_trials_and_mask(
]

if sess_loader is None:
sess_loader = SessionLoader(one=one, eid=eid)
sess_loader = SessionLoader(one=one, eid=eid, revision=MODIFIED_BEFORE)

if sess_loader.trials.empty:
sess_loader.load_trials()
Expand Down