From d4ac071195d8fe150295d366bf4ab1ab09025750 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Sun, 4 Feb 2024 09:50:53 -0600 Subject: [PATCH] fix: docstring line breaks for flake8 --- DDG4/python/DDSim/Helper/Action.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/DDG4/python/DDSim/Helper/Action.py b/DDG4/python/DDSim/Helper/Action.py index b58024583..108b29e13 100644 --- a/DDG4/python/DDSim/Helper/Action.py +++ b/DDG4/python/DDSim/Helper/Action.py @@ -33,11 +33,16 @@ class Action(ConfigHelper): Additional actions can be set as well with the following syntax variations: >>> SIM = DD4hepSimulation() - >>> SIM.action.run = "Geant4TestRunAction" # name only - >>> SIM.action.event = "Geant4TestEventAction/EventAction0,Geant4TestEventAction/EventAction1" # comma-separated names - >>> SIM.action.track = ( "Geant4TestTrackAction", {"Property_int": 10} ) # tuple of name and parameter dict - >>> SIM.action.step = { "name": "Geant4TestStepAction", "parameter": {"Property_int": 10} } # dict of name and parameter dict - >>> SIM.action.stack = [ { "name": "Geant4TestStackAction", "parameter": {"Property_int": 10} } ] # list of dict of name and parameter dict + # single action by name only: + >>> SIM.action.run = "Geant4TestRunAction" + # multiple actions with comma-separated names: + >>> SIM.action.event = "Geant4TestEventAction/Action0,Geant4TestEventAction/Action1" + # single actuon by tuple of name and parameter dict: + >>> SIM.action.track = ( "Geant4TestTrackAction", {"Property_int": 10} ) + # single action by dict of name and parameter dict: + >>> SIM.action.step = { "name": "Geant4TestStepAction", "parameter": {"Property_int": 10} } + # 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. -- GitLab