human readable json format and upload tool Hans
"human readable" json format and upload tool Hans Wenzel Outline: Changes to schema The json format 1 The Do. SSi. ERconverter. py tool Uploading via the web application Accessing dictionaries Web application Web service Various programming languages Plans Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
Modified schema Mcdetail replaced by: - Versiontag - model 2 Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
The json format Dictionary values (meta data) are uniquely identified by keywords→ Easier to understand less error prone. 3 Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
Do. SSi. ERconverter. py Extension of Andrea Doti’s uploader Changed for the new format Dictionaries are retrieved from the database via web service (or last copy) → meta data is checked against db values for validity. Not yet option to dump dictinaries Available in git: git clone https: //gitlab. cern. ch/Physics. Validation. DB/uploader. git Installation on SL 7: https: //nlesc. gitbooks. io/cern-root-conda-recipes/content/installing_root_via_anaconda. html # # get anaconda from: https: //www. anaconda. com/download/#linux # chmod +x Anaconda 2 -5. 0. 1 -Linux-x 86_64. sh # # run the anaconda installer and when asked specify the installation directory #. /Anaconda 2 -5. 0. 1 -Linux-x 86_64. sh # # this in the end will add anaconda to your path: # export PATH="/geant 4/app/anaconda 2/bin: $PATH" conda config --add channels https: //conda. anaconda. org/NLe. SC conda activate testenv conda install numpy conda install ujson conda install requests conda install root 4 Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
Do. SSi. ERconverter. py how to use. /Do. SSi. ERconverter. py --metadatafile meta_absxs. json -c convert --output absxc. json scxcall. root: Graph meta_absxs. json: 5 Hans Wenzel { ". *": { "referencekw": "1498563", "modelkw": "NA", "mctoolkw": "Experiment", "versiontagkw": "NA", "beamkw": "Triumf(DUET) pi+ beam", "targetkw": "C", "observablekw": "absorption cross section", "secondarykw": "NA", "reactionkw": "nuclear interaction", "scoreskw": "NA", "accesskw": "public" } } Physics Lists and Validation Tools working group meeting, th February 5 , 2018
Uploading via the web application 6 Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
7 Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
Accessing via the web application 8 Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
Accessing via the web service Other options: python (Do. SSi. ERconverter. py) Java C++ soon 9 Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
Plans 10 Add dumping of dictionaries as command line option to Do. SSi. ERconverter. py Work with anyone who has data to upload: simplified calorimeter, sunanda’s test… Review web service C++ interface to Do. SSi. ER Work on display Further evaluate jsroot Canvas with multiple plots Release highlights … → different presentation Hans Wenzel Physics Lists and Validation Tools working group meeting, th February 5 , 2018
- Slides: 10