braingeneers / braingeneerspy

Python package for Braingeneers data loading, analysis, and IoT.
https://pypi.org/project/braingeneers/
MIT License
17 stars 4 forks source link

Add a function to truncate NWB ElectricalSeries. #96

Closed DailyDreaming closed 3 months ago

DailyDreaming commented 3 months ago

Just for local files.

surygeng commented 3 months ago

Can you change the input "seconds" to [start_second, end_second]? This way, the function can break down a long recording to smaller chunks. For trimming, we just set the "start_second" to the desired starting point and "end_second" to the end of the recording. We could use ":" to indicate the end of the recording since user doesn't need to know the recording length.

DailyDreaming commented 3 months ago

@surygeng Breaking up an NWB file into smaller files sounds like a different function, and I think probably a different PR from this one?