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

Update CameraFrame-to-TelescopeFrame transformation and HillasReconstructor #151

Merged

Conversation

HealthyPear
Copy link
Member

@HealthyPear HealthyPear commented Jul 7, 2021

Closes #149

One of the improvements seems to be at least the H_max estimation.

Line 1 protopipe before this PR 1 simtel run
Line 2 protopipe after this PR 1 simtel run
Line 3 CTAMARS full gamma1 sample

image

Update

Latest result using full gamma1 sample

image

few modifications to account for limited data writing capabilities
details:
- updated class for updated hillas reconstructor
- added ignore warning for missing attribute frame
- fixed debug print
@HealthyPear HealthyPear added fix A PR that fixes a bug or a wrong behaviour. shower geometry reconstruction labels Jul 7, 2021
@HealthyPear HealthyPear added this to the v0.5.0 milestone Jul 7, 2021
@HealthyPear HealthyPear changed the title Update camera to telescope frame tranformation and HillasReconstructor Update CameraFrame-to-TelescopeFrame transformation and HillasReconstructor Jul 7, 2021
@codecov
Copy link

codecov bot commented Jul 7, 2021

Codecov Report

Merging #151 (29aaed8) into master (ab2b44f) will increase coverage by 0.59%.
The diff coverage is 86.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #151      +/-   ##
==========================================
+ Coverage   66.25%   66.85%   +0.59%     
==========================================
  Files          24       24              
  Lines        2291     2359      +68     
==========================================
+ Hits         1518     1577      +59     
- Misses        773      782       +9     
Impacted Files Coverage Δ
protopipe/pipeline/event_preparer.py 65.19% <80.00%> (+0.01%) ⬆️
protopipe/pipeline/temp.py 91.50% <87.61%> (+1.87%) ⬆️
protopipe/perf/temp.py 87.50% <0.00%> (-12.50%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab2b44f...29aaed8. Read the comment docs.

@HealthyPear HealthyPear requested a review from kosack July 7, 2021 15:23
@kosack
Copy link
Contributor

kosack commented Jul 8, 2021

Can you explain what the bug was? It is hard to tell with all the changes.

@HealthyPear
Copy link
Member Author

Can you explain what the bug was? It is hard to tell with all the changes.

My best guess is that it was some code divergence in the camera transformation part between the old development code in protopipe.pipeline.temp and the PR in ctapipe

@kosack
Copy link
Contributor

kosack commented Jul 8, 2021

I mainly ask because the code to do the H_max reconstruction did not change, but what did change was perhaps the HillasPlane initialization. If H_max was wrong before, it is also possible there were other bugs (or new ones) that are fixed (or broken) in this new version since the direction and core reconstruction also depend on the HillasPlane definition. Therefore it would be nice to see what was the original problem that caused h_max to be incorrect so we don't repeat it, or so we can add a unit test.

Copy link
Contributor

@kosack kosack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll approve it so we can try a full production, but would still like to undertstand what was fixed

@HealthyPear
Copy link
Member Author

I'll approve it so we can try a full production, but would still like to undertstand what was fixed

No need to approve and merge the PR yet, I can just use it from a dev branch (I should have opened it as a draft PR sorry)

@HealthyPear HealthyPear marked this pull request as draft July 13, 2021 14:30
@HealthyPear HealthyPear marked this pull request as ready for review September 27, 2021 15:40
@HealthyPear HealthyPear merged commit fc277c3 into cta-observatory:master Sep 28, 2021
@HealthyPear HealthyPear deleted the update_hillas-reconstructor branch September 28, 2021 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A PR that fixes a bug or a wrong behaviour. shower geometry reconstruction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update reconstructor
2 participants