Skip to content

Commit

Permalink
Use IC io load_dst instead of pandas read_hdf to load PSFs
Browse files Browse the repository at this point in the history
Done to avoid compatibility issues between pandas versions
  • Loading branch information
Aretno committed Apr 2, 2020
1 parent 3062929 commit 069c799
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invisible_cities/cities/beersheba.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,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

Expand Down Expand Up @@ -111,7 +112,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 :
Expand Down

0 comments on commit 069c799

Please # to comment.