Fix mode typo when running analyze_all() without dry_run.
authorW. Trevor King <wking@tremily.us>
Fri, 20 Apr 2012 17:16:02 +0000 (13:16 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 20 Apr 2012 17:16:02 +0000 (13:16 -0400)
calibcant/analyze.py

index 0fa917b6d205d69310da31fd56b468a26c07cc3f..839a51bb72076125cd8285fa8a184a92c481378a 100644 (file)
@@ -209,7 +209,7 @@ def analyze_all(config, data, raw_data, maximum_relative_error=1e-5,
         setting_name='inputs', attribute_value='deflection')
     bumps_changed = temperatures_changed = vibrations_changed = False
     if not isinstance(group, _h5py.Group) and not dry_run:
-        f = _h5py.File(filename, mode)
+        f = _h5py.File(filename, mode='a')
         group = _h5_create_group(f, group)
     else:
         f = None