File indexing completed on 2024-04-06 12:12:31
0001 import FWCore.ParameterSet.Config as cms
0002
0003 import argparse
0004 import sys
0005
0006 parser = argparse.ArgumentParser(prog=sys.argv[0], description='Test wrong process.options parameter types')
0007
0008 parser.add_argument("--name", help="Name of parameter", type=str)
0009 parser.add_argument("--value", help="Value of the parameter", type=str)
0010
0011 args = parser.parse_args()
0012
0013 process = cms.Process("TEST")
0014 process.source = cms.Source("EmptySource")
0015
0016 process.maxEvents.input = 2
0017
0018 delattr(process.options, args.name)
0019 setattr(process.options, args.name, eval(str(args.value)))