diff --git a/DDG4/python/DDSim/Helper/Action.py b/DDG4/python/DDSim/Helper/Action.py index 108b29e13dbce50b31c9939223cb955d35ea36e5..ec6fc8cc682034589ecc0c9619c789422a04db76 100644 --- a/DDG4/python/DDSim/Helper/Action.py +++ b/DDG4/python/DDSim/Helper/Action.py @@ -138,7 +138,7 @@ On the command line, these can be specified as JSON strings. try: val = json.loads(val) except ValueError: - val = tuple(val.split(",")) + val = [dict(name=v) for v in val.split(",")] if isinstance(val, tuple): # assumes: ( "Geant4TestEventAction", {"Property_int": 10} ) # creates: { "name": "Geant4TestEventAction", "parameter": {"Property_int": 10} }