From 82cdf39fc6ce8eb3ec596915291ad9a9a6ba040b Mon Sep 17 00:00:00 2001 From: Lanqing Yuan Date: Wed, 20 Mar 2024 10:43:00 -0500 Subject: [PATCH] force photon_timings to return np.int64 --- wfsim/core/s2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wfsim/core/s2.py b/wfsim/core/s2.py index a932e7f9..8935c6cb 100644 --- a/wfsim/core/s2.py +++ b/wfsim/core/s2.py @@ -554,7 +554,7 @@ def photon_timings(positions, n_photons_per_xy, _electron_timings, n_photons_per # repeat for n photons per electron # Should this be before adding delays? _photon_timings += np.repeat(_electron_timings, n_photons_per_ele) - return _photon_timings + return _photon_timings.astype(np.int64) @staticmethod def s2_pattern_map_diffuse(n_electron, z, xy, config, resource):