Skip to content

Commit

Permalink
fix in from_mpc converter
Browse files Browse the repository at this point in the history
  • Loading branch information
rbolgaryn committed Nov 20, 2023
1 parent 4767992 commit fce30d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Change Log
- [ADDED] option to use a second tap changer for the trafo element
- [CHANGED] parameters of function merge_internal_net_and_equivalent_external_net()
- [FIXED] :code:`convert_format.py`: update the attributes of the characteristic objects to match the new characteristic
- [FIXED] additional arguments from mpc saved to net._options: create "_options" if it does not exist


[2.13.1] - 2023-05-12
Expand Down
2 changes: 2 additions & 0 deletions pandapower/converter/matpower/from_mpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def from_mpc(mpc_file, f_hz=50, casename_mpc_file='mpc', validate_conversion=Fal
ppc = _m2ppc(mpc_file, casename_mpc_file)
net = from_ppc(ppc, f_hz=f_hz, validate_conversion=validate_conversion, **kwargs)
if "mpc_additional_data" in ppc:
if "_options" not in net:
net["_options"] = dict()
net._options.update(ppc["mpc_additional_data"])
logger.info('added fields %s in net._options' % list(ppc["mpc_additional_data"].keys()))

Expand Down

0 comments on commit fce30d9

Please sign in to comment.