From: W. Trevor King Date: Fri, 20 Apr 2012 17:16:02 +0000 (-0400) Subject: Fix mode typo when running analyze_all() without dry_run. X-Git-Tag: 0.8~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d49be10bdab0cf09243f7e11062e1cb17a9a552b;p=calibcant.git Fix mode typo when running analyze_all() without dry_run. --- diff --git a/calibcant/analyze.py b/calibcant/analyze.py index 0fa917b..839a51b 100644 --- a/calibcant/analyze.py +++ b/calibcant/analyze.py @@ -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