From dc8796cb0bf08ee584041b1fdbcc03411fd2246e Mon Sep 17 00:00:00 2001 From: Sjoerd Bouma Date: Mon, 22 Jan 2024 21:29:38 +0100 Subject: [PATCH] [RNO-G] include zero-meaning also in approximate block offset removal --- NuRadioReco/modules/RNO_G/channelBlockOffsetFitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NuRadioReco/modules/RNO_G/channelBlockOffsetFitter.py b/NuRadioReco/modules/RNO_G/channelBlockOffsetFitter.py index e4711e094..d306bba24 100644 --- a/NuRadioReco/modules/RNO_G/channelBlockOffsetFitter.py +++ b/NuRadioReco/modules/RNO_G/channelBlockOffsetFitter.py @@ -217,7 +217,7 @@ def fit_block_offsets( # obtain guesses for block offsets a_guess = np.mean(np.split(filtered_trace, n_blocks), axis=1) if mode == 'approximate': - block_offsets = a_guess + block_offsets = a_guess + np.mean(trace) elif mode == 'fit': # self._offset_guess[channel_id] = a_guess # we can get rid of one parameter through a global shift