From 1bd95cc11f9e153f3bd67e2f8528e660e1670a8a Mon Sep 17 00:00:00 2001 From: Martijn Govers Date: Tue, 4 Jun 2024 12:03:09 +0200 Subject: [PATCH] Update src/power_grid_model/validation/validation.py Signed-off-by: Martijn Govers Co-authored-by: Nitish Bharambe <78108900+nitbharambe@users.noreply.github.com> Signed-off-by: Martijn Govers --- src/power_grid_model/validation/validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/power_grid_model/validation/validation.py b/src/power_grid_model/validation/validation.py index 83c9b0e4c9..aab61338ac 100644 --- a/src/power_grid_model/validation/validation.py +++ b/src/power_grid_model/validation/validation.py @@ -828,6 +828,6 @@ def validate_transformer_tap_regulator(data: SingleDataset) -> List[ValidationEr errors += all_valid_enum_values(data, "transformer_tap_regulator", "control_side", [BranchSide, Branch3Side]) errors += all_greater_than_or_equal_to_zero(data, "transformer_tap_regulator", "u_set") errors += all_greater_than_zero(data, "transformer_tap_regulator", "u_band") - errors += all_greater_than_or_equal_to_zero(data, "transformer_tap_regulator", "line_drop_compensation_r") - errors += all_greater_than_or_equal_to_zero(data, "transformer_tap_regulator", "line_drop_compensation_x") + errors += all_greater_than_or_equal_to_zero(data, "transformer_tap_regulator", "line_drop_compensation_r", 0.0) + errors += all_greater_than_or_equal_to_zero(data, "transformer_tap_regulator", "line_drop_compensation_x", 0.0) return errors