From b1c30c23bda843e6ee1cfada60de0e0be2eee6ff Mon Sep 17 00:00:00 2001 From: Mitja Desmet Date: Wed, 22 May 2024 11:33:53 +0200 Subject: [PATCH] Flagged TBB channel IDs must be str to compare to names from rawTBBio --- NuRadioReco/modules/LOFAR/stationRFIFilter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NuRadioReco/modules/LOFAR/stationRFIFilter.py b/NuRadioReco/modules/LOFAR/stationRFIFilter.py index d6e657e13..80da1bb34 100644 --- a/NuRadioReco/modules/LOFAR/stationRFIFilter.py +++ b/NuRadioReco/modules/LOFAR/stationRFIFilter.py @@ -92,7 +92,7 @@ def FindRFI_LOFAR( Size of total block of trace to be evaluated for finding dirty rfi channels. rfi_cleaning_trace_length : int Size of one chunk of trace to be evaluated at a time for calculating spectrum from. - flagged_antenna_ids : list or set, default=[] + flagged_antenna_ids : list[str] or set[str], default=[] List of antennas which are already flagged. These will not be considered for the RFI detection process. num_dbl_z : int, default=100 The number of double zeros allowed in a block, if there are too many, then there could be data loss. @@ -497,7 +497,7 @@ def run(self, event): flagged_tbb_channel_ids = set() for ind in flagged_channel_ids: - flagged_tbb_channel_ids.add(int(nrrID_to_tbbID(ind))) + flagged_tbb_channel_ids.add(nrrID_to_tbbID(ind)) # in rawTBBio, antenna IDs are str packet = FindRFI_LOFAR(station_files, self.metadata_dir,