analyze.py: Set `changed = True` for tweaked vibration variance
[calibcant.git] / calibcant / analyze.py
index 47d510a7278da23cc0fe0e8c2edf084e86a38b00..c765387a7534d05373f229287e1c75ec95d1cc53 100644 (file)
@@ -392,6 +392,7 @@ def check_vibration(index, vibration, config=None, maximum_relative_error=0,
     else:
         rel_error = abs(variance-vibration['processed'])/vibration['processed']
         if rel_error > maximum_relative_error:
+            changed = True
             _LOG.warn(("new analysis doesn't match for vibration {}: {} != {} "
                        "(difference: {}, relative error: {})").format(
                     index, variance, vibration['processed'],