-
Notifications
You must be signed in to change notification settings - Fork 6
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
Arc corr and glob check fix #437
base: master
Are you sure you want to change the base?
Conversation
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 believe @JoschD has a few refactors & tests in mind. In the meantime, a few comments / suggestions.
A little bit of type hinting could go a long way for the new functions in omc3/correction/arc_by_arc.py
omc3/correction/arc_by_arc.py
Outdated
|
||
|
||
def get_arc_by_arc_bpm_pairs(meas_dict, opt): | ||
bpms = meas_dict['PHASEX'].index |
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.
Could use the constants instead of the hard-coded PHASEX
.
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.
True, I wasn't aware of the constants when I coded this.
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.
The codebase is in an in-between with some hardcoded stuff still and some constants use, but for new code let's try to keep to the good way :P
Hey @fscarlier . This still needs tests, have you progressed in that regard? |
Hey @fscarlier . It would be great if you could implement some tests, so we can merge this back into master and avoid the clusterfudge we had last year with diverging branches. |
Code Climate has analyzed commit 51c2400 and detected 2 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 42.8% (50% is the threshold). This pull request will bring the total coverage in the repository to 85.4% (-0.5% change). View more on Code Climate. |
Hey @fscarlier what is the status of these tests? Have you talked to @emaclean or @rogeliotomas that maybe someone else can take over this task if this cannot be done by you? |
It's all in a single pull request, since it was all entangled anyway:
changes:
Two things: