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
XML Units Checker #25236
XML Units Checker #25236
Conversation
please test |
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25236/7256 |
The tests are being triggered in jenkins. |
A new Pull Request was created by @ianna (Ianna Osborne) for master. It involves the following packages: DetectorDescription/DDCMS @civanch, @Dr15Jones, @cvuosalo, @ianna, @mdhildreth, @cmsbuild can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
Hi Ianna,
material fraction is a unitless variable.
Cheers,
Vladimir
…On Wed, 14 Nov 2018, Ianna Osborne wrote:
This is a helper script to check units consistency
as discussed during Sim meeting.
To run
python UnitsCheck.py DetectorDescription/DDCMS/data/materials.xml
intended output:
...
Line # 4661 WARNING: Numerical values without units:
<MaterialFraction fraction="0.2158">
_______________________________^________
Line # 4665 Units defined:
<CompositeMaterial name="LYSO" density="7.11*g/cm3" symbol=" " method="mixture by weight">
__________________________________________^__________________________________________________
...
@civanch - FYI
____________________________________________________________________________________________________________________
You can view, comment on, or merge this pull request online at:
#25236
Commit Summary
* Units checker
File Changes
* A DetectorDescription/DDCMS/test/python/UnitsCheck.py (69)
Patch Links:
* https://github.com/cms-sw/cmssw/pull/25236.patch
* https://github.com/cms-sw/cmssw/pull/25236.diff
?
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the
thread.[AEub7hAI1dHYOcq9h2Q-Hq-Zes3nZevUks5uvEdngaJpZM4YeIdT.gif]
|
@davidlange6 and @civanch - thanks! I'll update the script to use print function and exclude some obvious cases: MaterialFraction, etc. |
@ianna a bit special case perhaps: Line # 907 WARNING: Numerical values without units: ^_________________________________ the script does not technically fail, but some logic protection could improve its usefulness |
@fabiocos - thanks! I'll fix it. |
This is a helper script to check units consistency
as discussed during Sim meeting.
To run
intended output:
@civanch - FYI