Skip to content

Commit

Permalink
incorporated suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhenrichs committed Dec 13, 2024
1 parent c149205 commit 8557329
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions NuRadioReco/modules/base/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from timeit import default_timer as timer
import NuRadioReco.framework.event
import NuRadioReco.framework.base_station
import NuRadioReco.detector.detector_base
import NuRadioReco.detector.RNO_G.rnog_detector
import NuRadioReco.detector.detector as detectors
import inspect
import pickle

Expand Down Expand Up @@ -75,7 +74,7 @@ def register_run_method(self, *args, **kwargs):
# station should be second argument
elif isinstance(value, NuRadioReco.framework.base_station.BaseStation) and idx == 1:
station = value
elif isinstance(value, (NuRadioReco.detector.detector_base.DetectorBase, NuRadioReco.detector.RNO_G.rnog_detector.Detector)):
elif isinstance(value, (detectors.detector_base.DetectorBase, detectors.rnog_detector.Detector)):
pass # we don't try to store detectors
else: # we try to store other arguments IF they are pickleable
try:
Expand Down

0 comments on commit 8557329

Please sign in to comment.