AllenInstitute / openscope_databook

OpenScope databook: a collaborative, versioned, data-centric collection of foundational analyses for reproducible systems neuroscience 🐁🧠🔬🖥️📈
https://alleninstitute.github.io/openscope_databook
Other
62 stars 19 forks source link

Replace old code with numpy method #333

Closed rcpeene closed 6 months ago

rcpeene commented 7 months ago

There are several occurrences in old notebooks where user inputted times get converted to data indices. These should be updated to use numpy.searchsorted rather than the loops that they current use.