python-neo
python-neo copied to clipboard
set up collection of / extend utility functions
Using the neo structure can be quite cumbersome in some cases, eg like slicing objects based on an epoch array (#525). To improve on this we could A) extend the methods neo objects offer and B) start an object-independent collection of utility functions in a separate file. Most likely a combination of both is necessary to achieve best usability of the neo structure.
Here are some suggestions for helpful utility functions:
- [ ] create a
neo.Epochbased on aneo.Eventobject (or maybe twoneo.Eventobjects) - [ ] implement a
time_slicefunction forneo.Segmentthat also slices child objects accordingly - [ ] slicing a
neo.Segmentbased on aneo.Epoch - [ ] add
shiftmethods for neo Data objects, which move timescale of the object (includingt_startandt_stopadjustment, etc) - [ ] support inplace slicing to avoid data duplication and keep original neo structure.
Any thoughts on this? Additional suggestions?