Closed alexpiet closed 3 years ago
@dougollerenshaw thinks its this line, which changes the index "in place"
Thanks @alexpiet. I think the solution is to simply make a copy of the dataframe in the function before operating on it. We could set the function signature to be:
def event_triggered_response(input_data, ...
Then
data = input_data.copy()
Resolved in PR #17
One thing I've noticed is the event_triggered_response function in mindscope utilities appears to change the dataframes you pass in
For example, if I make an event triggered response for the running_df, then it moves a column "timestamps" to the index
so if I compute a second etr, it throws an error
that second make_event_triggered_plot throws an error