Vindaar / TimepixAnalysis

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

[BackupRun] improve end of run detection #35

Closed Vindaar closed 5 years ago

Vindaar commented 5 years ago

In the current implementation of the backupRun tool, we sometimes fail trying to determine the end time of the runs. This is because for some reason in some cases all files are empty at the end of some runs.

Fix that by: write a proc that tries to check the time from an event, but catches the exception that is being thrown if the data file is empty. In that case log that somewhere and try the file right before that until one is found that contains an end time.

Vindaar commented 5 years ago

Closed by https://github.com/Vindaar/TimepixAnalysis/commit/b28020fa67f5fa645e1583ba8c8d3c74442a2743.