AxFoundation/strax

n_top_channels always set to 0

Closed this issue · 0 comments

In add_lone_hits the numba function _add_lone_hits is called with n_top_channels always set to 0.

_add_lone_hits(peaks, lone_hits, to_pe, n_top_channels=0)

This line should be changed to

_add_lone_hits(peaks, lone_hits, to_pe, n_top_channels=n_top_channels)

so that the value is properly passed.