ATLAS Offline Software
generateDSFile.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 # helper script to generate JSON file of datasets for batch pathena submission
4 
5 import sys, json
6 prefix = sys.argv[1]
7 dslist = sys.argv[2:]
8 jlist = []
9 for ds in dslist:
10  jlist.append({'inDS': ds, 'outDS': prefix + '.' + ds.split(':')[-1]})
11 with open('inOutDs.json', 'w') as ofile:
12  json.dump(jlist, ofile)
Trk::open
@ open
Definition: BinningType.h:40