synsense / sinabs

A deep learning library for spiking neural networks which is based on PyTorch, focuses on fast training and supports inference on neuromorphic hardware.
https://sinabs.readthedocs.io
GNU Affero General Public License v3.0
77 stars 8 forks source link

events_to_raster should provide option to not shift timestamp of first event to 0 #188

Open ssinhaleite opened 9 months ago

ssinhaleite commented 9 months ago

Currently, when converting a list of events to a raster, using ChipFactory.events_to_raster, the timestamps will be aligned automatically such that the time of the first event is 0. This can be useful when the timestamps start with a high value and we only care about the timings after the first event.

However, often the timestamper is reset before recording events and hence the time of the first event can be of interested. I suggest providing the option of not aligning timestamps, in order to preserve this information.

bauerfe commented 7 months ago

Implementation done, but still needs unit testing