-
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
Get Peak to Peak from SDDS files #375
base: master
Are you sure you want to change the base?
Conversation
_log_pk2pk(pk2pk, name, bunch, opt.input_unit, opt.unit) | ||
|
||
if tbt_data.nbunches > 1: | ||
tbt_data_av = generate_average_tbtdata(tbt_data) |
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.
Does Multiturn generate an average of the bunches too? If not, this could be why you observe a difference.
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 only generate an average if there is more than one bunch in the file. and then also additionally to the per bunch pk2pk. And for the tested files, there is only a single bunch. So no idea what the difference is
Otherwise, this is nice. Maybe we add a simple measurement as a test for this script? |
missing
|
Code Climate has analyzed commit 9f13f2d and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 3.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 84.9% (-0.8% change). View more on Code Climate. |
After we had some problems yesterday with the pk2pk values in multiturn, I thought that might be helpful.
Strangely, I am not getting exactly the values from the logbook, e.g.
https://be-op-logbook.web.cern.ch/elogbook-server/GET/showEventInLogbook/3196358
Ideas are welcome!
I am actually not sure, if such a script is needed in omc3 as it's probably one of those that everyone already has lying around anyway. Thank god I didn't write it from scratch.