open-neuromorphic / expelliarmus

A Python package for decoding RAW and DAT files (Prophesee) to structured NumPy arrays of events.
https://expelliarmus.readthedocs.io/
GNU General Public License v2.0
36 stars 9 forks source link

Wrong timestamps when using Wizard.save() with evt3 files #20

Open akdavid opened 11 months ago

akdavid commented 11 months ago

Hi,

As I am on macOS I cannot use the metavision library to work with evt3 files, and so I am using expelliarmus. So first thank you for this package !

Here is the context of my issue. I use expelliarmus to convert an evt3 file into a numpy array, and then I split the numpy array into sub-arrays, and then I save the sub-arrays into evt3 raw files using Wizard.save(). However, the timestamps of the raw saved sub-arrays are not the same as the ones of the numpy sub-arrays.

Any advice to correct this issue ?

Moreover, when I open the saved raw files with a text editor, I observe that the date appearing in the header is not the good one (year 1970 instead of 2023). I guess this is related to my issue.

Best, Anthony

PS : I have already seen the issue #19 about timestamps problems, but I think that here it is a different issue.

fabrizio-ottati commented 11 months ago

Ah, this seems a nasty bug indeed.

The header issue is due to the fact that I hardcoded a random date in the source code :)

Regarding your issue, I need to take a look at it using Prophesee data.

akdavid commented 11 months ago

Thank you for the answer. I will be grateful if you find a solution :)