diff options
author | tlatorre <tlatorre@uchicago.edu> | 2020-01-20 15:18:52 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2020-01-20 15:18:52 -0600 |
commit | ddb687f13bc90650d7161ec7c95d64962eec1270 (patch) | |
tree | b4f1407d556976d4bfe3d48c34dc07225e888a83 /utils/cat-grid-jobs | |
parent | 301975dbdb4f75e91540acde81f4e2fc6d508366 (diff) | |
download | sddm-ddb687f13bc90650d7161ec7c95d64962eec1270.tar.gz sddm-ddb687f13bc90650d7161ec7c95d64962eec1270.tar.bz2 sddm-ddb687f13bc90650d7161ec7c95d64962eec1270.zip |
open files with 'r' so we don't update the timestamp if there are no new fit results
Diffstat (limited to 'utils/cat-grid-jobs')
-rwxr-xr-x | utils/cat-grid-jobs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cat-grid-jobs b/utils/cat-grid-jobs index 26258f5..2de0126 100755 --- a/utils/cat-grid-jobs +++ b/utils/cat-grid-jobs @@ -222,7 +222,7 @@ def cat_grid_jobs(conn, output_dir): output = join(output_dir,"%s_%s_fit_results.hdf5" % (root,uuid)) if os.path.exists(output): - with h5py.File(output,"a") as fout: + with h5py.File(output,'r') as fout: if 'fits' in fout: total_fits = fout['fits'].shape[0] |