Skip to content

Commit

Permalink
Change absolute time reference to first go cue
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhixiaoSu authored Oct 31, 2024
1 parent 32ecd7e commit 675d3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aind_dynamic_foraging_data_utils/nwb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def create_df_trials(nwb_filename):
df_ses_trials["ses_idx"] = ses_idx

# Adjust all times relative to start of the first trial
t0 = df_ses_trials.start_time[0]
t0 = df_ses_trials.goCue_start_time[0]
skip_cols = ["right_valve_open_time", "left_valve_open_time"]
for col in df_ses_trials.columns:
if ("time" in col) and (col not in skip_cols):
Expand Down

0 comments on commit 675d3a1

Please sign in to comment.