diff options
author | tlatorre <tlatorre@uchicago.edu> | 2020-06-22 08:49:01 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2020-06-22 08:49:01 -0500 |
commit | da3448e12c7fdfb00e6d5f2a76cf4ec3ceb2ae7f (patch) | |
tree | 532c2065a1ce775f7ae89c730ef6d2dc8bd41b84 /utils | |
parent | 251a4eb028493c0c56ba6ae1b9a0a6e4a40e39d3 (diff) | |
download | sddm-da3448e12c7fdfb00e6d5f2a76cf4ec3ceb2ae7f.tar.gz sddm-da3448e12c7fdfb00e6d5f2a76cf4ec3ceb2ae7f.tar.bz2 sddm-da3448e12c7fdfb00e6d5f2a76cf4ec3ceb2ae7f.zip |
set reprocessed attribute to 1 instead of True
This commit updates cat-grid-jobs to change the reprocessed attribute to be 1
instead of True since the previous value was giving the following warning:
/usr/lib64/python2.7/site-packages/tables/attributeset.py:298: DataTypeWarning: Unsupported type for attribute 'reprocessed' in node '/'. Offending HDF5 class: 8
value = self._g_getattr(self._v_node, name)
when opening them up with pandas read_hdf() function.
Diffstat (limited to 'utils')
-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 2c6cdf8..759d273 100755 --- a/utils/cat-grid-jobs +++ b/utils/cat-grid-jobs @@ -126,7 +126,7 @@ def cat_grid_jobs(conn, output_dir, zdab_dir=None): # already used the reprocessed version instead of the reduced # version if 'reprocessed' in filename: - fout.attrs['reprocessed'] = True + fout.attrs['reprocessed'] = 1 total_events = fout['ev'].shape[0] for fit_result_filename in fit_results: |