pwrs.corex.io._mat#
MATLAB MAT-file case format.
- pwrs.corex.io._mat.read_mat(source, *, variable_name='mpc')[source]#
Read a MATPOWER struct from a MATLAB MAT-file.
- Parameters:
source (str | PathLike[str])
variable_name (str)
- Return type:
- pwrs.corex.io._mat.write_mat(case, destination, *, variable_name='mpc')[source]#
Write a case as a MATLAB struct with a configurable variable name.
- Parameters:
case (MatpowerCase | Mapping[str, Any])
destination (str | PathLike[str])
variable_name (str)
- Return type:
Path