File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
pandapower/test/network_schema/elements Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 77from pandapower import create_bus_dc
88from pandapower .create import create_empty_network
99from 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 ,
Original file line number Diff line number Diff line change 88from pandapower .network_schema .tools .validation .network_validation import validate_network
99from pandapower .network_schema .tools .helper import get_dtypes
1010from 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 ,
Original file line number Diff line number Diff line change 99from pandapower .network_schema .tools .validation .network_validation import validate_network
1010from pandapower .network_schema .tools .helper import get_dtypes
1111from 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 (
You can’t perform that action at this time.
0 commit comments