Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed Aug 21, 2023
1 parent 73a69ef commit 8aaed67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion allensdk/brain_observatory/behavior/stimulus_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,9 @@ def compute_trials_id_for_stimulus(
active_sorted = stim_pres_table.active

# Find stimulus blocks that start within a trial. Copy the trial_id
# into our new trials_ids series.
# into our new trials_ids series. For some sessions there are gaps in
# between one trial's end and the next's stop time so we account for this
# by only using the max time for all trials as the limit.
max_trials_stop = trials_table.stop_time.max()
for idx, trial in trials_table.iterrows():
stim_mask = (stim_pres_table.start_time > trial.start_time) & (
Expand Down

0 comments on commit 8aaed67

Please sign in to comment.