data-curation icon indicating copy to clipboard operation
data-curation copied to clipboard

CMS - release info json updates

Open katilp opened this issue 1 year ago • 1 comments

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:

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

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 avatar Apr 24 '23 17:04 katilp

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

  • in https://github.com/cernopendata/data-curation/blob/master/cms-YYYY-validated-runs/code/vali_records.py#L126
  • https://github.com/cernopendata/data-curation/blob/master/cms-YYYY-luminosity/code/lumi_records.py#L122
  • https://github.com/cernopendata/data-curation/blob/master/.github/workflows/cms-luminosity-tables.yaml#L25
  • https://github.com/cernopendata/data-curation/blob/master/.github/workflows/cms-luminosity-tables.yaml#L35

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

katilp avatar Apr 24 '23 19:04 katilp