Skip to content

Commit

Permalink
remove .keys() since it is the default for in dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
lpyras committed May 31, 2024
1 parent 754296b commit 8491a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NuRadioReco/detector/detector_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ def get_channel_group_id(self, station_id, channel_id):
the channel group ID
"""
res = self.__get_channel(station_id, channel_id)
if 'channel_group_id' not in res.keys():
if 'channel_group_id' not in res:
logger.info(
'Channel group ID not set for channel {} in station {}, returning channel_id'.format(
channel_id, station_id))
Expand Down

0 comments on commit 8491a4d

Please sign in to comment.