_Configuration.has

_Configuration.has(section, key)

Tell whether a property exists.

Parameters:
  • section (str) – the section (case-sensitive)

  • key (str) – the key (case-insensitive)

Returns:

True if section.key exists

Return type:

bool

Example

import pyagrum as gum

gum.config.has("tensor", "visibleDigits")
# True
gum.config.has("tensor", "noSuchKey")
# False

Class

_Configuration