-
Notifications
You must be signed in to change notification settings - Fork 60
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
Configurability for material plots #392
Conversation
0c8bf66
to
f2cd8da
Compare
b0f3ac7
to
62be7fa
Compare
Now can we have those changes on top of the original style 🤪 |
I am afraid that is not something I can do in 5 minutes ;) Should we format all python sources and make a PR that we can then ignore in blames? |
But something that reduces the amount of changes. Because #396 is going to be painful enough to merge. |
932d5b4
to
80d9cc4
Compare
00a42c8
to
b33bcda
Compare
Rebased this after #398 has been merged. Please check again that I didn't mess up in the process.
|
Thanks for checking. |
320b6ad
to
7104691
Compare
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 am OK with this. Anything else from your side @andresailer?
Thank you for the work @Victor-Schwan, it works fine for me! I think it would be nice to apply the same improvements to the 1D mat. budget scripts (in the same place) and update the scripts/check_material_budget.sh script accordingly. What do you think @andresailer @tmadlener ? |
In the long run, I think harmonizing all of these scripts would be a good idea. Whether we do it in this PR or in follow up PRs depends a bit on the availability of @Victor-Schwan. I the bash script does not work any longer at the moment, we should fix it. @armin-ilg do you have some estimates how long this runs, and whether we could put this into a CI workflow (maybe in a slightly slimmed down version)? |
I agree that it is a good idea to harmonize as much as possible. I'd prefer to do the harmonization in another PR. In principle, one could also turn the scripts in the scripts folder into python scripts to have the same |
On lxplus the plots take O(5) minutes (running all angle defs), so that could definitely go into a CI workflow |
Should this script be added to a CI workflow in this PR or in another one? |
I was wrong, sorry, the bash script still works fine, no change needed. Let me know if I shall make a CI workflow at some point @tmadlener (will not be able to do it soon though) |
…angleDef option added to material_plots_2D.py
Co-authored-by: Thomas Madlener <[email protected]>
b58cdcb
to
c402f69
Compare
@Victor-Schwan can you estimate how much work it would be to simply run the bash script in CI? If it's only a few more lines, I would appreciate it if it's added in this PR, otherwise, I am also fine with a follow up. |
I took another look at the script and noticed two things:
I only use the nightlies for ILD@FCCee, hence, I cannot test the script easily with my detectors (I have never run it before). I suggest fixing the script and adding the CI in another PR |
@armin-ilg Am I right in assuming that there is nothing left to stop you from approving this PR? |
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.
All fine with me, thanks!
BEGINRELEASENOTES
material_plots_2D.py
:angleDef
is a choice parameter +thetaRad
choice addedoutputDir
option addedmaterial_scan_2d.py
:compactFile
,outputFileBase
,angleDef
)outputDir
option addedENDRELEASENOTES