Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing import statement modules/base/module.py #780

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

jakobhenrichs
Copy link
Collaborator

There was a missing import statement in modules/base/module.py, which sometimes caused an error in line 77 of the file. With this PR the missing import statement is added.

@fschlueter
Copy link
Collaborator

Hi Jakob thanks for doing this. I found this in a couple of branches I have open but the fix never made it into the develop

fschlueter
fschlueter previously approved these changes Dec 12, 2024
@fschlueter
Copy link
Collaborator

I approved it, however, what I think would be a litte bit of a better solution would be to import import NuRadioReco.detector.detector as detectors and than test for detectors.rnog_detector.Detector or detectors.detector_base.Detector. But his works as well

@jakobhenrichs
Copy link
Collaborator Author

Hi Felix, I changed the import statement and if condition according to your suggestions.

@jakobhenrichs jakobhenrichs merged commit f3f146d into develop Dec 13, 2024
5 checks passed
@jakobhenrichs jakobhenrichs deleted the fix_import_statement_base_module branch December 13, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants