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 ee68f23 commit 6f95172Copy full SHA for 6f95172
1 file changed
loren_frank_data_processing/multiunit.py
@@ -144,5 +144,6 @@ def get_multiunit_indicator_dataframe(tetrode_key, animals,
144
multiunit_dataframe = get_multiunit_dataframe2(tetrode_key, animals)
145
time_index = np.digitize(multiunit_dataframe.index.total_seconds(),
146
time.total_seconds())
147
+ time_index = time_index[time_index < len(time) - 1]
148
return (multiunit_dataframe.groupby(time[time_index]).mean()
149
.reindex(index=time))
0 commit comments