From a3c0c9050b7e05e59faff90286a23f1a73f441b8 Mon Sep 17 00:00:00 2001 From: Tianlu Yuan <5412915+tianluyuan@users.noreply.github.com> Date: Sun, 24 Sep 2023 08:57:44 -0500 Subject: [PATCH] np --> numpy --- skymap_scanner/recos/common/pulse_proc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skymap_scanner/recos/common/pulse_proc.py b/skymap_scanner/recos/common/pulse_proc.py index 89a4a2eb4..550711ff6 100644 --- a/skymap_scanner/recos/common/pulse_proc.py +++ b/skymap_scanner/recos/common/pulse_proc.py @@ -97,8 +97,8 @@ def pulse_cleaning( all_ts.extend(ts) cs = numpy.asarray([p.charge for p in ps]) all_cs.extend(cs) - tw_start = max(weighted_quantile(np.asarray(all_ts), np.asarray(all_cs), 0.1) - 1000, min(all_ts)) - tw_stop = min(weighted_quantile(np.asarray(all_ts), np.asarray(all_cs), 0.95) + 1000, max(all_ts)) + tw_start = max(weighted_quantile(numpy.asarray(all_ts), numpy.asarray(all_cs), 0.1) - 1000, min(all_ts)) + tw_stop = min(weighted_quantile(numpy.asarray(all_ts), numpy.asarray(all_cs), 0.95) + 1000, max(all_ts)) for omkey, ps in pulses.items(): ts = numpy.asarray([p.time for p in ps]) cs = numpy.asarray([p.charge for p in ps])