Closed anjakefala closed 2 years ago
Wouldn't this be a bug in kotekan and not dias?
I don't see why you both say this would be a bug in kotekan, the flaginput files contain the flags generated within a 24 hour period, not all the flags applied within that period. This could always have broken but, but is much more likely to have issues now it's hot and we are restarting.
A chimestack file, from the start of an acquisition (00000_0000.h5) which has the index_map/time/ctime which spans Fri Jul 16 2021 18:29:43 GMT+0000 to Fri Jul 16 2021 19:54:22 GMT+0000 actually has states associated with this flaginput id: flaginput_20210715T172153.583519Z_raw'
It contains states associated with update ids which are a day older than the timespan it supposedly covers. This results in the dataset analyzer being unable to find the update ids in the appropriate flag files which match the chimestack timespan, and it throws an exception.
The dataset analyzer can accomodate this by grabbing one earlier flag file, but before we implement this, we should make sure that this is not a bug earlier in the pipeline.