paroto.io.stone#

STONE format YAML serialization for architecture definition.

STONE (Structured Topology for Optimization and aNalysis Environments) format provides a standardized way to serialize optimization architectures.

Functions#

serialize_architecture_to_stone(prob, output_path)

Serialize OpenMDAO problem architecture to STONE format YAML.

load_architecture_from_stone(yaml_path)

Load architecture from STONE format YAML file.

create_architecture_yaml(name, components[, ...])

Create a STONE format architecture definition.

Module Contents#

paroto.io.stone.serialize_architecture_to_stone(prob, output_path)#

Serialize OpenMDAO problem architecture to STONE format YAML.

Parameters:
  • prob (om.Problem) – OpenMDAO problem instance

  • output_path (str) – Path to output YAML file

paroto.io.stone.load_architecture_from_stone(yaml_path)#

Load architecture from STONE format YAML file.

Parameters:

yaml_path (str) – Path to YAML file

Returns:

architecture – Architecture dictionary

Return type:

dict

paroto.io.stone.create_architecture_yaml(name, components, connections=None, output_path=None)#

Create a STONE format architecture definition.

Parameters:
  • name (str) – Architecture name

  • components (list) – List of component definitions

  • connections (list, optional) – List of connections

  • output_path (str, optional) – If provided, save to this path

Returns:

architecture – Architecture dictionary

Return type:

dict