Skip to content

Commit

Permalink
Merge branch 'develop' into dev_plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohmeier authored Dec 16, 2019
2 parents 58e5c24 + 3e70885 commit 5dbe106
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pandapower/auxiliary.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# THE SOFTWARE.
# (https://github.com/bcj/AttrDict/blob/master/LICENSE.txt)

from collections import MutableMapping
from collections.abc import MutableMapping
import copy

import numpy as np
Expand Down
8 changes: 4 additions & 4 deletions pandapower/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ def create_ext_grid(net, bus, vm_pu=1.0, va_degree=0., name=None, in_service=Tru
**min_q_mvar** (float, NaN) - Minimum reactive power injection. Only respected for OPF
\* only considered in loadflow if calculate_voltage_angles = True
** only considered in loadflow if calculate_voltage_angles = True
EXAMPLE:
create_ext_grid(net, 1, voltage = 1.03)
Expand Down Expand Up @@ -1864,7 +1864,7 @@ def create_transformer_from_parameters(net, hv_bus, lv_bus, sn_mva, vn_hv_kv, vn
**df** (float) - derating factor: maximal current of transformer in relation to nominal \
current of transformer (from 0 to 1)
\* only considered in loadflow if calculate_voltage_angles = True
** only considered in loadflow if calculate_voltage_angles = True
OUTPUT:
**index** (int) - The unique ID of the created transformer
Expand Down Expand Up @@ -2112,8 +2112,8 @@ def create_transformer3w_from_parameters(net, hv_bus, mv_bus, lv_bus, vn_hv_kv,
**in_service** (boolean, True) - True for in_service or False for out of service
\* only considered in loadflow if calculate_voltage_angles = True
\**The model currently only supports one tap-changer per 3W Transformer.
** only considered in loadflow if calculate_voltage_angles = True
**The model currently only supports one tap-changer per 3W Transformer.
**max_loading_percent (float)** - maximum current loading (only needed for OPF)
Expand Down
2 changes: 1 addition & 1 deletion pandapower/std_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def create_std_type(net, data, name, element="line", overwrite=True, check_requi
additional parameters can be added and later loaded into pandapower with the function
"parameter_from_std_type".
\* only considered in loadflow if calculate_voltage_angles = True
** only considered in loadflow if calculate_voltage_angles = True
The standard type is saved into the pandapower library of the given network by default.
Expand Down
3 changes: 1 addition & 2 deletions pandapower/test/api/test_convert_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,4 @@ def test_convert_format(version):


if __name__ == '__main__':
# load_and_test_network("1.4.3")
pytest.main(__file__)
pytest.main([__file__])
2 changes: 1 addition & 1 deletion pandapower/test/api/test_file_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,4 @@ def test_json_io_same_net(net_in, tempdir):


if __name__ == "__main__":
pytest.main(["test_file_io.py", "-x"])
pytest.main([__file__, "-x"])
3 changes: 1 addition & 2 deletions pandapower/test/api/test_std_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,5 +322,4 @@ def test_add_temperature_coefficient():


if __name__ == "__main__":
# net = pp.create_empty_network()
pytest.main(["test_std_types.py"])
pytest.main([__file__])
3 changes: 2 additions & 1 deletion pandapower/toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# and Energy System Technology (IEE), Kassel. All rights reserved.

import copy
from collections import Iterable, defaultdict
from collections import defaultdict
from collections.abc import Iterable
from itertools import chain

import numpy as np
Expand Down

0 comments on commit 5dbe106

Please sign in to comment.