ATLAS Offline Software
Loading...
Searching...
No Matches
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
5import sys, json
6prefix = sys.argv[1]
7dslist = sys.argv[2:]
8jlist = []
9for ds in dslist:
10 jlist.append({'inDS': ds, 'outDS': prefix + '.' + ds.split(':')[-1]})
11with open('inOutDs.json', 'w') as ofile:
12 json.dump(jlist, ofile)