Skip to content

Commit

Permalink
= added in angle validation triangle conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatrou committed Jan 13, 2025
1 parent b1aba60 commit 40d77d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hyspecppt/hppt/hppt_view_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def validate(self, input_text: str, pos: int) -> tuple[QValidator.State, str, in

# check the conditions
if angle_sum > 360 or (
alpha_beta_sum < gamma_value or alpha_gamma_sum < beta_value or beta_gamma_sum < alpha_value
alpha_beta_sum <= gamma_value or alpha_gamma_sum <= beta_value or beta_gamma_sum <= alpha_value
):
return QValidator.Intermediate, field_input, field_pos
else:
Expand Down

0 comments on commit 40d77d3

Please sign in to comment.