Skip to content

add phi0 to chord_length#2872

Merged
maxnoe merged 12 commits into
mainfrom
muon_fit_include_phi0_as_parameter
Oct 25, 2025
Merged

add phi0 to chord_length#2872
maxnoe merged 12 commits into
mainfrom
muon_fit_include_phi0_as_parameter

Conversation

@burmist-git
Copy link
Copy Markdown
Member

Add phi0 to chord_length
related to :
#2845

@burmist-git burmist-git requested review from maxnoe and mexanick and removed request for maxnoe October 23, 2025 13:01
mexanick
mexanick previously approved these changes Oct 23, 2025
Copy link
Copy Markdown
Contributor

@mexanick mexanick left a comment

Choose a reason for hiding this comment

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

LGTM. Coverage is underreported because of numba.

@burmist-git
Copy link
Copy Markdown
Member Author

@maxnoe These are tests - they are good. Could you please review this long lasting question.
image

Comment thread docs/changes/2872.feature.rst Outdated
Comment thread src/ctapipe/image/muon/intensity_fitter.py Outdated
Comment thread src/ctapipe/image/muon/intensity_fitter.py Outdated
Copy link
Copy Markdown
Member

@maxnoe maxnoe left a comment

Choose a reason for hiding this comment

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

See inline comments.

@maxnoe
Copy link
Copy Markdown
Member

maxnoe commented Oct 24, 2025

These are tests - they are good.

These are not tests. It's a collection of plots for which I have no idea how they were produced.

@maxnoe
Copy link
Copy Markdown
Member

maxnoe commented Oct 24, 2025

There is a code change here for a bugfix, but no new test making sure the bug is actually fixed.

So independent of the numba coverage underreporting, there is indeed missing coverage here.

Please add a test that fails on the current main and passes after the changes you make here to demonstrate what this fixes and prevent changes from breaking it again.

@maxnoe
Copy link
Copy Markdown
Member

maxnoe commented Oct 24, 2025

There is also no test added for the new functionality of passing in phi0 as an argument.

And I have to ask again: what is the motivation for this change? Why do you want to push the rotation business into these lower level function compared to the muon image prediction?

@maxnoe
Copy link
Copy Markdown
Member

maxnoe commented Oct 24, 2025

Ok, please rebase now that #2873 is merged.

@burmist-git
Copy link
Copy Markdown
Member Author

@maxnoe @mexanick please merge.

@maxnoe
Copy link
Copy Markdown
Member

maxnoe commented Oct 24, 2025

You could already use thee new parameter now in the intensity fit likelihood.

@burmist-git
Copy link
Copy Markdown
Member Author

burmist-git commented Oct 24, 2025

I prefer to first add "my" new lightweight method for this. This new method is more efficient and, more importantly, it provides an entry point for ML algorithms.

@ctao-sonarqube
Copy link
Copy Markdown

@maxnoe maxnoe merged commit c2a3001 into main Oct 25, 2025
13 checks passed
@burmist-git
Copy link
Copy Markdown
Member Author

great !!!

@burmist-git burmist-git deleted the muon_fit_include_phi0_as_parameter branch October 25, 2025 17:29
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.

3 participants