hephy-dd / sqc

Sensor Quality Control for the CMS Tracker
https://hephy-dd.github.io/sqc/
GNU General Public License v3.0
0 stars 0 forks source link

Measurement fails when in compliance #44

Closed arnobaer closed 8 months ago

arnobaer commented 8 months ago

If a measurement raises a ComplianceError in module sqc.strategy, local variable result is not defined, resulting in an unhanded exception aborting the measurement sequence: https://github.com/hephy-dd/sqc/blob/15daea5e334ba3f798d96a8d69521f8713d7fdf0/sqc/strategy.py#L509-L523

Solution: define result = False before the try-except block.