_Configuration.toString

_Configuration.toString()

All the properties (except the deprecated ones). This is what print(pyagrum.config) shows.

Returns:

the properties by section as in pyagrum.ini, cut in 3 aligned columns read one after the other (a column never ends with a section header). This display is not the format of pyagrum.ini: see diff() and save().

Return type:

str

Example

import pyagrum as gum

gum.config.push()
gum.config.reset()
print("\n".join(gum.config.toString().splitlines()[:3]))  # same as print(gum.config)
# [core]                                    columnWidthConsole = 9                       utilityVisibleDigits = 2
#   maxNumberOfThreads = -1                 visibleDigits = 4                            utilityShowStdev = True
#   randomSeed = 0                          withColors = True                            utilityShowLoss = False
gum.config.pop()

Class

_Configuration