Skip to content
Snippets Groups Projects

Bugfixes in build_dataset.py

Merged Davide Valsecchi requested to merge github/fork/mmarchegiani/main into main

Created by: mmarchegiani

Two bugfixes in the dataset handling are implemented:

  • Additional optional parameter dbs_instance that can be specified in the metadata for datasets with DBS instance different from prod/global
  • Bug that was saving a fictious sample dictionary with key metadata

Example of datasets_definition.json file:

{
    "DATA_BTagMu":{
        "sample": "DATA",
        "json_output"     : "datasets/DATA_BTagMu.json",
        "storage_prefix" : "/pnfs/psi.ch/cms/trivcat/store/user/mmarcheg/BTVNanoCommissioning",
        "files":[
            { "das_names": ["/BTagMu/mmarcheg-Run2018A-UL2018_MiniAODv2-v1_PFNanoAOD-690f1d1c4f2456484a2616002f2d2b6d/USER"],
              "dbs_instance" : "prod/phys03",
              "metadata": {
                  "year":"2018",
                  "isMC": false,
                  "primaryDataset": "BTagMu",
                  "era": "A" }},
    }
}

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading