Skip to content

Commit 075d293

Browse files
committed
tcsc: changed optional test and name
bus_dc: changed optional test and name bus: changed helper path
1 parent 76698d4 commit 075d293

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

pandapower/test/network_schema/elements/test_pandera_bus_dc_elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pandapower import create_bus_dc
88
from pandapower.create import create_empty_network
99
from pandapower.network_schema.tools.validation.network_validation import validate_network
10-
from pandapower.test.pandera.elements.helper import (
10+
from pandapower.test.network_schema.elements.helper import (
1111
strings,
1212
bools,
1313
not_strings_list,

pandapower/test/network_schema/elements/test_pandera_bus_elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pandapower.network_schema.tools.validation.network_validation import validate_network
99
from pandapower.network_schema.tools.helper import get_dtypes
1010
from pandapower.network_schema.bus import bus_schema
11-
from pandapower.test.pandera.elements.helper import (
11+
from pandapower.test.network_schema.elements.helper import (
1212
strings,
1313
bools,
1414
not_strings_list,

pandapower/test/network_schema/elements/test_pandera_tscs_elements.py renamed to pandapower/test/network_schema/elements/test_pandera_tcsc_elements.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from pandapower.network_schema.tools.validation.network_validation import validate_network
1010
from pandapower.network_schema.tools.helper import get_dtypes
1111
from pandapower.network_schema.bus import bus_schema
12-
from pandapower.test.pandera.elements.helper import (
12+
from pandapower.test.network_schema.elements.helper import (
1313
strings,
1414
all_floats,
1515
bools,
@@ -141,6 +141,11 @@ def test_optional_fields_with_nulls(self):
141141
in_service=False,
142142
max_angle_degree=90
143143
)
144+
net.tcsc['min_angle_degree'].at[0] = float(np.nan)
145+
net.tcsc['max_angle_degree'].at[0] = float(np.nan)
146+
net.tcsc['max_angle_degree'].at[1] = float(np.nan)
147+
net.tcsc['min_angle_degree'].at[2] = float(np.nan)
148+
144149
validate_network(net)
145150

146151
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)