Source: factory.core/extend.edit/ObjCalculationEdit.py
Extends ObjCalculation to provide YAML export functionality.
Exports complete calculation group configurations with all steps,
SQL content formatted for readability, and descriptions reflowed.
| Method | Signature | Description |
|---|---|---|
| load | load(group_name: str, package: Optional[str] = None) -> dict |
Load complete calculation group configuration from database. |
| export_to_file | export_to_file(group_name: str, filename: Optional[str] = None, package: Optional[str] = None) -> bool |
Export calculation group configuration to YAML file. |
| import_from_data | import_from_data(data: dict, package: Optional[str] = None) -> bool |
Import a calculation group from an in-memory dict into the database. |
| import_from_file | import_from_file(filename: str, package: Optional[str] = None) -> bool |
Import a calculation group from a YAML file into the database. |
Save a calculation group to a formatted YAML file.
Load a calculation group from a YAML file into the database.