analyze.py: Set `changed = True` for tweaked vibration variance master
authorW. Trevor King <wking@tremily.us>
Sun, 5 May 2013 01:16:12 +0000 (21:16 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 5 May 2013 01:16:12 +0000 (21:16 -0400)
I missed this in 560f9f9 (Get calibcant working with the new
load_from_config-based pyafm, 2012-03-16).

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'],