The Strip acquisition software does not save valid values in the two attributes FIRST_SAMPLE and LAST_SAMPLE of the root group, because this would be too time-consuming. The solution I adopted in hdf5db.py was to compute these number by iterating over all the datasets and looking for the minimum and maximum valid MJD values.
This PR implements the --update-hdf5 switch in the script build_hdf5_database.py, which forces the code to write the compute MJD range back in the HDF5 files, if this is not already in place.
The Strip acquisition software does not save valid values in the two attributes
FIRST_SAMPLE
andLAST_SAMPLE
of the root group, because this would be too time-consuming. The solution I adopted inhdf5db.py
was to compute these number by iterating over all the datasets and looking for the minimum and maximum valid MJD values.This PR implements the
--update-hdf5
switch in the scriptbuild_hdf5_database.py
, which forces the code to write the compute MJD range back in the HDF5 files, if this is not already in place.