From 40d77d3bb0806fa229e6fd52c63bc0df243abd3c Mon Sep 17 00:00:00 2001 From: "Patrou, Maria" Date: Mon, 13 Jan 2025 09:03:24 -0500 Subject: [PATCH] = added in angle validation triangle conditions --- src/hyspecppt/hppt/hppt_view_validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyspecppt/hppt/hppt_view_validators.py b/src/hyspecppt/hppt/hppt_view_validators.py index 42c6fa2..66701ac 100644 --- a/src/hyspecppt/hppt/hppt_view_validators.py +++ b/src/hyspecppt/hppt/hppt_view_validators.py @@ -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: