PimLightConfigWriter#

class ansys.saf.product_configuration.pim.config_writer.PimLightConfigWriter#

A utility class for writing PIM Light Server configuration files.

Overview#

write_config

Writes the PIM configuration to a YAML file in the specified configurations directory.

Import detail#

from ansys.saf.product_configuration.pim.config_writer import PimLightConfigWriter

Method detail#

classmethod PimLightConfigWriter.write_config(configurations_dir: pathlib.Path, instance_configuration: ansys.saf.product_configuration.interfaces.IProductInstanceConfiguration)#

Writes the PIM configuration to a YAML file in the specified configurations directory.

Parameters:
configurations_dirPath

The path to the directory where the configuration YAML file will be written.

Examples

You can write the configuration to a directory called my_solution/product_instance_configs like this:

>>> config.write_config(Path("my_solution/product_instance_configs"))