diff --git a/doc/tutorials/running.rst b/doc/tutorials/running.rst index 31b4b0b768fb323463350c5506145ce5ee802dd1..d35b265f3c04a741062f0392ad4e046c4ec0ed5f 100644 --- a/doc/tutorials/running.rst +++ b/doc/tutorials/running.rst @@ -93,8 +93,11 @@ Ganga does not support ``lbexec``, yet! A workaround has been prepared, as follo import yaml from DaVinci import Options with open("options.yaml", "r") as f: - options = Options(**yaml.safe_loads(f)) - print_decay_tree(options) # make sure to rename print_decay_tree to whatever your function is called + options = Options(**yaml.safe_load(f)) + with options.apply_binds(): # required as gaudirun.py does not apply binds! + print_decay_tree(options) # make sure to rename print_decay_tree to whatever your function is called + +The function `apply_binds()`, a member function of the LbExec `Options` class [https://gitlab.cern.ch/lhcb/LHCb/-/blob/master/GaudiConf/python/GaudiConf/LbExec/options.py](LbExec/options.py), is automatically called when running DaVinci through `lbexec`. When running through `gaudirun.py` the binds must be applied within the DaVinci options, otherwise DaVinci will encounter reconstruction issues. 2. Add ``my_module.py`` to your ``GaudiExec`` application ``options`` list, and ``options.yaml`` to your ``job.inputfiles`` (input sandbox.)