validate#
- Configurations.validate(config: str | dict) bool#
Validate a configuration file against the schema.
The default schema can be found in
src/ansys/aedt/core/misc/config.schema.json.- Parameters:
- Returns:
- bool
Trueif the configuration file is valid,Falseotherwise. If the validation fails, a warning is also written to the logger.
Examples
>>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> hfss.configurations.validate(r"C:\Temp\hfss_config.json")