From d49be10bdab0cf09243f7e11062e1cb17a9a552b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 20 Apr 2012 13:16:02 -0400 Subject: [PATCH] Fix mode typo when running analyze_all() without dry_run. --- calibcant/analyze.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2