Skip to content

Commit

Permalink
Load using revision last before
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Jul 30, 2024
1 parent bcef4b4 commit a3c6820
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit a3c6820

Please sign in to comment.