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

CMS - release info json updates #169

Open
katilp opened this issue Apr 24, 2023 · 1 comment
Open

CMS - release info json updates #169

katilp opened this issue Apr 24, 2023 · 1 comment
Assignees

Comments

@katilp
Copy link
Member

katilp commented Apr 24, 2023

The release info json has been updated with HI-related runs.

This means that there will be more than one entry / year and they can be distinguished with a new value "type" with values such as pp, PbPb, pPb, pphiref.

Check that the current use of the server is not affected (and if so, add type=pp in the query).
e.g:

Synchronize the json files in https://github.com/cernopendata/data-curation/tree/master/cms-release-info with those served from https://github.com/katilp/node-json-api

@katilp katilp self-assigned this Apr 24, 2023
@katilp
Copy link
Member Author

katilp commented Apr 24, 2023

E.g. http://api-server-cms-release-info.app.cern.ch/years?year=2015&type=pp&output=plain

Check also

$ grep api-server */code/*
cms-YYYY-luminosity/code/lumi_records.py:    url = 'http://api-server-cms-release-info.app.cern.ch/runeras/run_era?year='+year+'&released=yes'
cms-YYYY-luminosity/code/lumi_records.py:    url = 'http://api-server-cms-release-info.app.cern.ch/runeras/run_era?year='+year+'&type=pp-phys'
cms-YYYY-luminosity/code/lumi_records.py:    url = 'http://api-server-cms-release-info.app.cern.ch/years?year='+year+'&output=plain'
grep: cms-YYYY-simulated-datasets/code/__pycache__: Is a directory
cms-YYYY-validated-runs/code/vali_records.py:    url = 'http://api-server-cms-release-info.app.cern.ch/runeras/run_era?year='+year+'&type=pp-phys'
cms-YYYY-validated-runs/code/vali_records.py:    url = 'http://api-server-cms-release-info.app.cern.ch/years?year='+year+'&output=plain'

And in .github/worlflow:

        curl http://api-server-cms-release-info.app.cern.ch/years/val_json?year=$YEAR > myjs.json
        curl http://api-server-cms-release-info.app.cern.ch/years/val_json?year=$YEAR > myjs.json

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

No branches or pull requests

1 participant