From dc5310a5f5c84fc89d0e1b2f089d081275dc2f64 Mon Sep 17 00:00:00 2001 From: petersalemink95 Date: Wed, 8 Jan 2025 13:58:33 +0100 Subject: [PATCH] use scalar Signed-off-by: petersalemink95 --- .../include/power_grid_model/component/current_sensor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/power_grid_model_c/power_grid_model/include/power_grid_model/component/current_sensor.hpp b/power_grid_model_c/power_grid_model/include/power_grid_model/component/current_sensor.hpp index 4eebdc863..cdaf0bd2d 100644 --- a/power_grid_model_c/power_grid_model/include/power_grid_model/component/current_sensor.hpp +++ b/power_grid_model_c/power_grid_model/include/power_grid_model/component/current_sensor.hpp @@ -95,7 +95,7 @@ template class CurrentSensor : public Ge double const scalar = 1.0 / base_current_; if (!is_nan(update_data.i_sigma)) { - i_sigma_ = update_data.i_sigma / base_current_; + i_sigma_ = update_data.i_sigma * scalar; } if (!is_nan(update_data.i_angle_sigma)) { i_angle_sigma_ = update_data.i_angle_sigma;