We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1380607 commit 31c6eebCopy full SHA for 31c6eeb
1 file changed
src/rachel_analysis_utils/nwb_utils.py
@@ -20,7 +20,7 @@ def split_nwb_by_choice(nwb):
20
return nwb_split
21
22
def split_nwb_by_time(nwb):
23
- num_trials = np.max(nwbs_by_week[0][0].df_trials['trial'])
+ num_trials = np.max(nwb.df_trials['trial'])
24
mid_point = int(num_trials/2)
25
nwb_split_early, nwb_split_late = copy.deepcopy(nwb), copy.deepcopy(nwb)
26
nwb_split_early.df_trials = nwb.df_trials.query(f'trial < {mid_point}')
0 commit comments