Hi,
so here are the constraints that i have to work with:
The tool i have to use at the moment uses root 6.08.6 and python 2.7.13
We have a root macro which is loaded from python via ROOT.gROOT.LoadMacro("GetPValue.cxx+")
We supply global settings to it by having the following in the macro:
namespace GetPValueOptions
{
int NCalls = -1;
bool ExternalConstraint = false;
...
and then setting
if options.NCalls:
ROOT.GetPValueOptions.NCalls = int(options.NCalls)
from within python.
However now there is a new setting that needs to be synchronized between the python and root parts which is a dictionary of the type Dict[str, list[str]
.
Currently the root side is maintained separately as a std::map<TString, std::vector<std::string>>
However i would like to not maintain them separately but instead set the root one from within python like the other settings.
What is the best way to do this in the given root/python version.
Cheers