From e600b78c7455de27fa0bacb2f883d6f68d6357cd Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Thu, 23 Feb 2023 10:44:44 +0100 Subject: [PATCH] HOTFIX * fixes bug where quality checker for compensations would not check properly for state surface sums --- compensation/utils/quality.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compensation/utils/quality.py b/compensation/utils/quality.py index f883ba3..193cf9a 100644 --- a/compensation/utils/quality.py +++ b/compensation/utils/quality.py @@ -30,7 +30,10 @@ class CompensationQualityChecker(AbstractQualityChecker): """ after_states = self.obj.get_surface_after_states() before_states = self.obj.get_surface_before_states() - if after_states != before_states: + sum_after_states_surface = self.obj.get_surface_after_states() + sum_before_states_surface = self.obj.get_surface_before_states() + + if sum_after_states_surface != sum_before_states_surface: self.messages.append( _("States unequal") ) -- 2.38.5