Skip to content

Commit

Permalink
change return function of get_channel_group_id to return channel id i…
Browse files Browse the repository at this point in the history
…f no group id is set.
  • Loading branch information
lpyras committed May 27, 2024
1 parent 07559c2 commit fe35d63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NuRadioReco/detector/detector_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,10 +967,10 @@ def get_channel_group_id(self, station_id, channel_id):
"""
res = self.__get_channel(station_id, channel_id)
if 'channel_group_id' not in res.keys():
logger.warning(
'Channel group ID not set for channel {} in station {}, returning -1'.format(
logger.info(
'Channel group ID not set for channel {} in station {}, returning channel_id'.format(
channel_id, station_id))
return -1
return channel_id
else:
return res['channel_group_id']

Expand Down

0 comments on commit fe35d63

Please sign in to comment.