_Configuration.describe

_Configuration.describe()

Describe the configuration: the properties which differ from the defaults if any, otherwise all the properties (with a comment saying that they are the defaults). This is what repr(pyagrum.config) shows.

Returns:

the properties which differ from the defaults in the format of pyagrum.ini, otherwise all the properties displayed as by toString()

Return type:

str

Example

import pyagrum as gum

gum.config.push()
gum.config.reset()
gum.config["tensor", "visibleDigits"] = 6
print("\n".join(gum.config.describe().splitlines()[:2]))  # the customized properties first
# [tensor]
#   visibleDigits = 6
gum.config.pop()

Class

_Configuration