andes.system.helpers#

System-level utility functions and internal helpers.

Active public utilities:
  • fix_view_arrays: Restore NumPy view arrays after deserialization.

  • example: Load a pre-configured IEEE 14-bus example system.

  • import_pycode: Import generated numerical code.

Internal DAE naming helpers (consumed by andes.system.facade):
  • _append_model_name, _set_xy_name, _set_hi_name, _set_z_name.

Deprecated backward-compat wrappers (will be removed in v3.0):
  • _config_numpy: use SystemConfigRuntime.configure_numpy().

  • load_config_rc: use SystemConfigRuntime.load_config_rc().

Functions

example([setup, no_output])

Return an andes.system.System object for the ieee14_linetrip.xlsx as an example.

fix_view_arrays(system[, models])

Point NumPy arrays without OWNDATA (termed "view arrays" here) to the source array.

import_pycode([user_pycode_path])

Import generated numerical code (pycode).

load_config_rc([conf_path])

Backward-compatible wrapper to andes.system.config_runtime.SystemConfigRuntime.load_config_rc().