Skip to content

GetAllParameters in onelab.py

Nicolas Marsic requested to merge GetAllOnelabParameters into master

Hi again,

In the same spirit of merge request !394 (merged), I was wondering if we could add the ability of getting all onelab parameters via the .py interface?

I saw that everything is ready in Common/gmshLocalNetworkClient.cpp with the GMSH_PARAMETER_QUERY_ALL message. So I just added two extra functions in onelab.py to exploit this.

In the end, there is a new function getAllParameters which returns a dictionary where i) the key is the name of the parameter and ii) the associated value is another dictionary with the attributes of the said variable (the 'name' attribute comes then twice (as a key and as a value), but I guess that's not a big issue).

Merge request reports