From 88eb930996d60b5b6399c280c8dc691a4de8ca0d Mon Sep 17 00:00:00 2001 From: Gabriel Emery Date: Fri, 5 Jul 2024 09:12:23 +0200 Subject: [PATCH] Move comment about NSB extraction from simtel file to the function docstring. --- lstchain/io/io.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lstchain/io/io.py b/lstchain/io/io.py index bfcf686ef5..79a82ad556 100644 --- a/lstchain/io/io.py +++ b/lstchain/io/io.py @@ -1263,14 +1263,16 @@ def remove_duplicated_events(data): def extract_simulation_nsb(filename): """ - Get current run NSB from configuration in simtel file + Get current run NSB from configuration in simtel file. + + WARNING : In current MC, correct NSB are logged after 'STORE_PHOTOELECTRONS' entries + In any new production, behaviour needs to be verified. + New version of simtel will allow to use better metadata. + :param str filename: Input file name :return dict of `float` by tel_id: NSB rate """ nsb = {} - # In current MC, correct NSB are logged after 'STORE_PHOTOELECTRONS' entries - # TODO In any new production, behaviour needs to be verified. - # New version of simtel will allow to use better metadata next_nsb = False tel_id = 1 with SimTelFile(filename) as f: