Skip to content

Commit

Permalink
Make detector interface more general
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlueter committed Jan 5, 2024
1 parent 94d495a commit 9b0864d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NuRadioReco/detector/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ def Detector(*args, **kwargs):
json_filename=filename, source=source, dictionary=dictionary,
assume_inf=assume_inf, antenna_by_depth=antenna_by_depth, **kwargs)
else:
# Keys might be present (but should be None). Keys are deprecated, keep them for backwards compatibility
for key in ["default_station", "default_channel", "default_device"]:
kwargs.pop(key, "None")

return NuRadioReco.detector.detector_base.DetectorBase(
json_filename=filename, source=source, dictionary=dictionary,
assume_inf=assume_inf, antenna_by_depth=antenna_by_depth, **kwargs)

0 comments on commit 9b0864d

Please sign in to comment.