lspestrip / striptease

Strip TEst Analysis for System Evaluation
MIT License
4 stars 3 forks source link

Prevent the code from being trickied when wrong timestamps are found in HDF5 #64

Closed ziotom78 closed 2 years ago

ziotom78 commented 2 years ago

HDF5 files produced by the Strip electronics sometimes containg samples tagged with wrong timestamps (usually 1970-01-01).

This PR patches the DataFile class so that it skips these timestamps when calculating the DataFile.mjd_range field (a 2-element tuple containing the minimum and maximum timestamp in the file), which is used by hdf5db.py to build a database of HDF5 files.