Skip to content

Commit

Permalink
Merge pull request #1347 from AllenInstitute/GH-1289/behavior-analysi…
Browse files Browse the repository at this point in the history
…s-table-error

GH-1289: Partial fix for data access
  • Loading branch information
kschelonka authored Feb 5, 2020
2 parents 05bdbb6 + bc8fd2d commit ec75e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allensdk/brain_observatory/behavior/stimulus_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_stimulus_presentations(data, stimulus_timestamps):
# workaround to rename columns to harmonize with visual coding and rebase timestamps to sync time
stimulus_table.insert(loc=0, column='flash_number', value=np.arange(0, len(stimulus_table)))
stimulus_table = stimulus_table.rename(columns={'frame': 'start_frame', 'time': 'start_time', 'flash_number':'stimulus_presentations_id'})
stimulus_table.start_time = [stimulus_timestamps[start_frame] for start_frame in stimulus_table.start_frame.values]
stimulus_table.start_time = [stimulus_timestamps[int(start_frame)] for start_frame in stimulus_table.start_frame.values]
end_time = []
for end_frame in stimulus_table.end_frame.values:
if not np.isnan(end_frame):
Expand Down

0 comments on commit ec75e61

Please sign in to comment.