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

add get_bad_bpms #427

Merged
merged 13 commits into from
Nov 14, 2024
Merged

add get_bad_bpms #427

merged 13 commits into from
Nov 14, 2024

Conversation

awegsche
Copy link
Contributor

@awegsche awegsche commented Sep 6, 2023

New Feature

This script collects a list of all BPMs declared as bad by either SVD cleaning or isolation forest and compiles a list with number of occurances for each BPM that has been declared at least 50% (25%) of the time.

Purpose

Every now and then BI asks for a list of BPMs that cause trouble for our measurements so that they can take a closer look during the next (E?YET|L)S . This script is intended to facilitate the process of retrieving such a list.

Notes

This script is just a template, if specific measurements / globbing sounds better than just taking unchecked all the measurements in one (or several) output folder, feel free to adapt if necessary

I am not going to write tests for this. It's a script that's run once every 2-3 years.

@awegsche awegsche self-assigned this Sep 6, 2023
@awegsche awegsche changed the title add get_bpms add get_bad_bpms Sep 6, 2023
Copy link
Member

@fsoubelet fsoubelet left a comment

Choose a reason for hiding this comment

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

Details here and there. I'm open to contributing about them if you would like.

I'm wondering if this should be included in omc3 itself. Maybe this is a good fit for pylhc? Would like @JoschD's opinion.

Also, in hindsight to my review in #pylhc/py, I like the little purpose paragraph you have in this PR. Maybe it could be copy-pasted or adapted there?

omc3/scripts/get_bad_bpms.py Outdated Show resolved Hide resolved
omc3/scripts/get_bad_bpms.py Outdated Show resolved Hide resolved
omc3/scripts/get_bad_bpms.py Outdated Show resolved Hide resolved
omc3/scripts/get_bad_bpms.py Outdated Show resolved Hide resolved
omc3/scripts/get_bad_bpms.py Outdated Show resolved Hide resolved
omc3/scripts/get_bad_bpms.py Outdated Show resolved Hide resolved
omc3/scripts/get_bad_bpms.py Outdated Show resolved Hide resolved
omc3/scripts/get_bad_bpms.py Outdated Show resolved Hide resolved
@pylhctokens pylhctokens added Type: Feature A (suggetion for a) new feature or enhancement in functionality. and removed Feature labels Sep 11, 2024
@JoschD JoschD assigned JoschD and unassigned awegsche Nov 12, 2024
@JoschD JoschD added Estimate: Easy Good first issue for newcomers. Straightforward fixes. Priority: Low Work on this if you have some spare time. Type: Documentation Improvements, updates and fixes to the documentation. Status: On Hold Work currently stopped, but not for blocking reasons. labels Nov 12, 2024
@JoschD JoschD requested a review from a team as a code owner November 13, 2024 14:19
@JoschD
Copy link
Member

JoschD commented Nov 13, 2024

Please don't make me write tests :-/

@JoschD JoschD requested review from jgray-19 and removed request for Mael-Le-Garrec and tpersson November 13, 2024 22:48
Copy link
Member

@JoschD JoschD left a comment

Choose a reason for hiding this comment

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

Docstring for the args missing

Copy link
Member

@fsoubelet fsoubelet left a comment

Choose a reason for hiding this comment

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

Cool, mostly would like to see the module docstring include script parameters and potentially an example.

Worth noting: with the amount of tfs.concat we're doing here, without providing any setup for the headers handling, the results will always be headers-less. Not sure if it's something we care, or it we want to write some basic info in the final output's headers.

omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
omc3/scripts/bad_bpms_summary.py Outdated Show resolved Hide resolved
fsoubelet
fsoubelet previously approved these changes Nov 14, 2024
jgray-19
jgray-19 previously approved these changes Nov 14, 2024
@JoschD JoschD dismissed stale reviews from jgray-19 and fsoubelet via 09b5ff6 November 14, 2024 20:44
Copy link

codeclimate bot commented Nov 14, 2024

Code Climate has analyzed commit 09b5ff6 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 91.3% (50% is the threshold).

This pull request will bring the total coverage in the repository to 85.9% (0.0% change).

View more on Code Climate.

@JoschD JoschD merged commit 63948bc into master Nov 14, 2024
37 checks passed
@JoschD JoschD deleted the get_bad_bpms branch November 14, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Estimate: Easy Good first issue for newcomers. Straightforward fixes. Priority: Low Work on this if you have some spare time. Status: On Hold Work currently stopped, but not for blocking reasons. Type: Documentation Improvements, updates and fixes to the documentation. Type: Feature A (suggetion for a) new feature or enhancement in functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants