From: W. Trevor King Date: Fri, 20 Apr 2012 17:57:25 +0000 (-0400) Subject: Use 'read' instead of 'append' as the file mode in Calibrator.load_raw(). X-Git-Tag: 0.8~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4e6279a398a5aa9b3be92de1b1d7675be7693bd3;p=calibcant.git Use 'read' instead of 'append' as the file mode in Calibrator.load_raw(). It's safer that way (less chance of corrupting your data). --- 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),