pwrs.core.mpver#
- pwrs.core.mpver.mpver(*args, nargout=None)[source]#
Return or print the pwrs version record.
Mimics MATPOWER’s
mpverbehavior. When output arguments are requested it returns either the version string or the full version struct, otherwise it prints the formatted version banner.- Parameters:
*args – Optional MATLAB-style selector arguments. Any non-empty argument list requests the full version record when outputs are requested.
nargout (int, optional) – MATLAB compatibility flag controlling whether values are returned or the banner is printed.
- Returns:
Version string, version record dict, or
Nonewhen printing.- Return type:
str or dict or None