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

XML Units Checker #25236

Merged
merged 1 commit into from Nov 15, 2018
Merged

XML Units Checker #25236

merged 1 commit into from Nov 15, 2018

Conversation

ianna
Copy link
Contributor

@ianna ianna commented Nov 14, 2018

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

@ianna
Copy link
Contributor Author

ianna commented Nov 14, 2018

please test

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 14, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/31656/console Started: 2018/11/14 18:28

@cmsbuild
Copy link
Contributor

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.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@ianna
Copy link
Contributor Author

ianna commented Nov 14, 2018

+1

@cmsbuild
Copy link
Contributor

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)

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25236/31656/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3013311
  • DQMHistoTests: Total failures: 18
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3013096
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 134 log files, 14 edm output root files, 32 DQM output files

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 6cced50 into cms-sw:master Nov 15, 2018
@civanch
Copy link
Contributor

civanch commented Nov 15, 2018 via email

@davidlange6
Copy link
Contributor

hi @ianna -
as you mentioned to me - the print syntax should be updated - some examples in #23825

otherwise, modulo @civanch comment - maybe you should just make a GitHub issue with the results of your script on all the geometry files in cmssw? (somehow grouped if there are lots and lots)

@ianna
Copy link
Contributor Author

ianna commented Nov 15, 2018

@davidlange6 and @civanch - thanks! I'll update the script to use print function and exclude some obvious cases: MaterialFraction, etc.

@fabiocos
Copy link
Contributor

@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

@ianna
Copy link
Contributor Author

ianna commented Nov 15, 2018

@fabiocos - thanks! I'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants