Skip to content

Commit

Permalink
np --> numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
tianluyuan committed Sep 24, 2023
1 parent 28dcddd commit a3c0c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skymap_scanner/recos/common/pulse_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit a3c0c90

Please sign in to comment.