-
Notifications
You must be signed in to change notification settings - Fork 10
SbS Dispersion Fix (local) #516
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
Conversation
- Include dpx,dpy propagation in the sbs, saved to separate file
8c26237
to
f04eb9e
Compare
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
- Include only dispersion files, since now they include dpx,dpy so that can be extracted for the initial conditions of sbs
A few things about the dispersion propagation. The initial sbs implementation was not using DPX ,DPY from measurements to the start and end for the sbs propagation. This is solved by creating a new Propagable (DispersionMomentum). In BBsrc, dpx, dpy are also written in the sbs_dispersion files, but here it was easier to write everything to separate files (e.g. sbs_dispersion_dpx.tfs). Regarding the tests, fake measurements now include dpx, its errors, etc in the dispersion files, so that can be used correctly in the propagation tests. |
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.
Looking nice. I'd prefer to see the propagable renamed to its physics name, aka MomentumDispersion
.
Might also be worth defining MOMENTUM: str = "P"
in the constants to avoid hardcoding everywhere. Up to discussion @JoschD.
I agree to the first. For the second, I would go one step further (or back?) and make the whole string a constant: MOMENTUM_DISPERSION: str = "DP" |
Summarizing a bit the last commits:
|
Looks good to me now! |
@yangelis you need to re-request the review from Felix, when you are done |
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.
Looks pretty good to me, although maybe one day, could have this inherit off of dispersion?
Local copy of #515