Skip to content

Commit 6ce871a

Browse files
committed
fix test
Signed-off-by: Martijn Govers <[email protected]>
1 parent 40d3a73 commit 6ce871a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/unit/converters/test_pandapower_converter_input.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,11 @@ def test_create_pgm_input_lines(mock_init_array: MagicMock, two_pp_objs, convert
572572
)
573573
pgm.assert_any_call(
574574
"tan1",
575-
_get_pp_attr("line", "g_us_per_km", expected_type="f8", default=0)
576-
/ _get_pp_attr("line", "c_nf_per_km", expected_type="f8")
577-
/ (np.pi / 10),
575+
np.divide(
576+
_get_pp_attr("line", "g_us_per_km", expected_type="f8", default=0),
577+
_get_pp_attr("line", "c_nf_per_km", expected_type="f8") * (np.pi / 10),
578+
where=_get_pp_attr("line", "c_nf_per_km", expected_type="f8") != 0.0,
579+
),
578580
)
579581
pgm.assert_any_call(
580582
"i_n",

0 commit comments

Comments
 (0)