Vindaar / TimepixAnalysis

Contains code related to calibration and analysis of Timepix based detector + CAST related code
MIT License
19 stars 6 forks source link

Runs sometimes not reconstructed #8

Closed Vindaar closed 5 years ago

Vindaar commented 5 years ago

There is a recurring bug, which sometimes (not quite sure if it's actually reproducible) causes runs to be missed when doing the reconstruction for a file, which was just created from raw data manipulation.

It is visible by the fact that the chip groups are missing in the reconstruction group of the reconstructed files for the affected runs.

Vindaar commented 5 years ago

Fixed by https://github.com/Vindaar/TimepixAnalysis/commit/b65396251ecf741841f7600e021ede90b90b3df9.

The issue was us using the keys iterator of a table and changing the table in between calls to the iterator runs. Solution is to save state of keys on first call and iterate over that seq instead.