Save the i-th vibration in analyze_all(), not the list of all vibrations.
authorW. Trevor King <wking@tremily.us>
Wed, 13 Jun 2012 18:13:36 +0000 (14:13 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 13 Jun 2012 18:13:36 +0000 (14:13 -0400)
calibcant/analyze.py

index 780d6dac2e45627c8a0b826b777b79aa0d92199a..f8d1bdd6b7620d657e2ecb0fab7e498997b79049 100644 (file)
@@ -275,7 +275,7 @@ def analyze_all(config, data, raw_data, maximum_relative_error=1e-5,
                 vibration_group = _h5_create_group(
                     group, 'vibration/{}'.format(i))
                 _vibration_save(
-                    group=vibration_group, processed=data['vibration'])
+                    group=vibration_group, processed=data['vibration'][i])
         if (bumps_changed or temperatures_changed or vibrations_changed
             ) and not dry_run:
             calibration_group = _h5_create_group(group, 'calibration')