From 4e6279a398a5aa9b3be92de1b1d7675be7693bd3 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 20 Apr 2012 13:57:25 -0400 Subject: [PATCH] Use 'read' instead of 'append' as the file mode in Calibrator.load_raw(). It's safer that way (less chance of corrupting your data). --- calibcant/calibrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibcant/calibrate.py b/calibcant/calibrate.py index da7e7cf..8a68cbe 100644 --- a/calibcant/calibrate.py +++ b/calibcant/calibrate.py @@ -593,7 +593,7 @@ class Calibrator (object): def load_raw(self, filename=None, group='/'): """Load results saved during `.aquire()` by bumps, etc.""" data = {} - with _h5py.File(filename, 'a') as f: + with _h5py.File(filename, 'r') as f: for name,loader in [('bump',_bump_load), ('temperature', _temperature_load), ('vibration', _vibration_load), -- 2.26.2