Skip to content

Commit

Permalink
Update src/power_grid_model/validation/validation.py
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>

Co-authored-by: Nitish Bharambe <78108900+nitbharambe@users.noreply.github.com>
Signed-off-by: Martijn Govers <martygovers@hotmail.com>
  • Loading branch information
mgovers and nitbharambe authored Jun 4, 2024
1 parent 0b458b8 commit 1bd95cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/power_grid_model/validation/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1bd95cc

Please sign in to comment.