-
Notifications
You must be signed in to change notification settings - Fork 13
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
adding tels pointing #123
adding tels pointing #123
Conversation
# if all telescopes are pointing in parallel to run_array_direction, no need to pass the tels | ||
# pointing to predict | ||
if all(x.alt == event.mcheader.run_array_direction[1] | ||
and x.az == event.mcheader.run_array_direction[0] for x in tels_pointing.values()): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you mean point_altitude_dict.values()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this is what is killing the tests, here an extract
Traceback (most recent call last):
File "/home/runner/work/protopipe/protopipe/protopipe/scripts/data_training.py", line 573, in <module>
main()
File "/home/runner/work/protopipe/protopipe/protopipe/scripts/data_training.py", line 235, in main
for (
File "/home/runner/work/protopipe/protopipe/protopipe/pipeline/event_preparer.py", line 929, in prepare_event
and x.az == event.mcheader.run_array_direction[0] for x in tels_pointing.values()):
UnboundLocalError: local variable 'tels_pointing' referenced before assignment
This PR makes me realize that we should have also a divergent test suite! Site wouldn't be important since now with the new integration tests we already test parallel pointing on both sites Should we then close #38? |
# if all telescopes are pointing in parallel to run_array_direction, no need to pass the tels | ||
# pointing to predict | ||
if all(x.alt == event.mcheader.run_array_direction[1] | ||
and x.az == event.mcheader.run_array_direction[0] for x in tels_pointing.values()): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this is what is killing the tests, here an extract
Traceback (most recent call last):
File "/home/runner/work/protopipe/protopipe/protopipe/scripts/data_training.py", line 573, in <module>
main()
File "/home/runner/work/protopipe/protopipe/protopipe/scripts/data_training.py", line 235, in main
for (
File "/home/runner/work/protopipe/protopipe/protopipe/pipeline/event_preparer.py", line 929, in prepare_event
and x.az == event.mcheader.run_array_direction[0] for x in tels_pointing.values()):
UnboundLocalError: local variable 'tels_pointing' referenced before assignment
superseeds #38