Skip to content
Snippets Groups Projects
Commit c7ae697b authored by Wouter Deconinck's avatar Wouter Deconinck Committed by MarkusFrankATcernch
Browse files

doc: add json example

parent d9261577
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,18 @@ class Action(ConfigHelper):
# multiple actions by list of dict of name and parameter dict:
>>> SIM.action.stack = [ { "name": "Geant4TestStackAction", "parameter": {"Property_int": 10} } ]
On the command line, these can be specified as JSON strings.
On the command line or in python, these actions can be specified as JSON strings:
$ ddsim --action.stack '{ "name": "Geant4TestStackAction", "parameter": { "Property_int": 10 } }'
or
>>> SIM.action.stack = '''
{
"name": "Geant4TestStackAction",
"parameter": {
"Property_int": 10,
"Property_double": "1.0*mm"
}
}
'''
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment