Skip to content

Commit

Permalink
Merge pull request #780 from nu-radio/fix_import_statement_base_module
Browse files Browse the repository at this point in the history
add missing import statement modules/base/module.py
  • Loading branch information
jakobhenrichs authored Dec 13, 2024
2 parents 279428a + 8557329 commit f3f146d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NuRadioReco/modules/base/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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.detector as detectors
import inspect
import pickle

Expand Down Expand Up @@ -74,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 f3f146d

Please sign in to comment.