Skip to content

Commit 24241ed

Browse files
committed
fix missing register component to topology
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
1 parent 809ceca commit 24241ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

power_grid_model_c/power_grid_model/include/power_grid_model/main_model_impl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ class MainModelImpl<ExtraRetrievableTypes<ExtraRetrievableType...>, ComponentLis
333333
main_core::register_topology_components<GenericLoadGen>(state_, comp_topo);
334334
main_core::register_topology_components<GenericVoltageSensor>(state_, comp_topo);
335335
main_core::register_topology_components<GenericPowerSensor>(state_, comp_topo);
336+
main_core::register_topology_components<GenericCurrentSensor>(state_, comp_topo);
336337
main_core::register_topology_components<Regulator>(state_, comp_topo);
337338
state_.comp_topo = std::make_shared<ComponentTopology const>(std::move(comp_topo));
338339
}

tests/native_api_tests/test_api_model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ TEST_CASE("API Model") {
10781078
{"id": 3, "from_node": 1, "to_node": 2, "from_status": 0, "to_status": 0, "r1": 0.000416, "x1": 0.000136, "c1": 1e-09, "tan1": 0}
10791079
],
10801080
"sym_current_sensor": [
1081-
{"id": 7, "measured_object": 3, "measured_terminal_type": 0, "angle_measurement_type": 0, "i_sigma": 1, "i_angle_sigma": 0.05, "i_measured": 10, "i_angle_measured": 0.3}
1081+
{"id": 4, "measured_object": 3, "measured_terminal_type": 0, "angle_measurement_type": 0, "i_sigma": 1, "i_angle_sigma": 0.05, "i_measured": 10, "i_angle_measured": 0.3}
10821082
]
10831083
}
10841084
})json";

0 commit comments

Comments
 (0)