From da3448e12c7fdfb00e6d5f2a76cf4ec3ceb2ae7f Mon Sep 17 00:00:00 2001 From: tlatorre Date: Mon, 22 Jun 2020 08:49:01 -0500 Subject: 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. --- utils/cat-grid-jobs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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: -- cgit