Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use IC io load_dst instead of pandas read_hdf to load PSFs #714

Merged
merged 1 commit into from
Apr 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion invisible_cities/cities/beersheba.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 :
Expand Down