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

adding tels pointing #123

Closed
wants to merge 2 commits into from
Closed

Conversation

vuillaut
Copy link
Member

superseeds #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()):
Copy link
Member

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()

Copy link
Member

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

@HealthyPear
Copy link
Member

HealthyPear commented Mar 30, 2021

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()):
Copy link
Member

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

@HealthyPear HealthyPear added divergent pointing enhancement New feature or request pipeline applications Application of the pipeline to specific studies reconstruction labels May 13, 2021
@HealthyPear HealthyPear added this to In progress in Pipeline features and enhancements via automation May 13, 2021
@HealthyPear HealthyPear added this to In progress in Pipeline applications via automation May 13, 2021
@HealthyPear HealthyPear mentioned this pull request May 13, 2021
3 tasks
@HealthyPear HealthyPear closed this Feb 1, 2022
Pipeline features and enhancements automation moved this from In progress to Done Feb 1, 2022
Pipeline applications automation moved this from In progress to Done Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
divergent pointing enhancement New feature or request pipeline applications Application of the pipeline to specific studies shower geometry reconstruction
Development

Successfully merging this pull request may close these issues.

None yet

2 participants