From 4a41eb95332671433cd2615f6d2a1118a755bf59 Mon Sep 17 00:00:00 2001 From: Ander Date: Thu, 2 Apr 2020 11:53:59 +0200 Subject: [PATCH] Use IC io `load_dst` instead of pandas `read_hdf` to load PSFs Done to avoid compatibility issues between pandas versions --- invisible_cities/cities/beersheba.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invisible_cities/cities/beersheba.py b/invisible_cities/cities/beersheba.py index 57640f2aa8..4cba5955ec 100644 --- a/invisible_cities/cities/beersheba.py +++ b/invisible_cities/cities/beersheba.py @@ -47,6 +47,7 @@ from .. io. mcinfo_io import mc_info_writer from .. io.run_and_event_io import run_and_event_writer from .. io. dst_io import store_pandas_as_tables +from .. io. dst_io import load_dst from .. evm.event_model import HitEnergy @@ -110,7 +111,7 @@ def deconvolve_signal(psf_fname : str, bin_size = np.asarray(bin_size ) diffusion = np.asarray(diffusion ) - psfs = pd.read_hdf(psf_fname) + psfs = load_dst(psf_fname, 'PSF', 'PSFs') deconvolution = deconvolve(n_iterations, iteration_tol, sample_width, bin_size, inter_method) if energy_type not in HitEnergy :