Compare commits

...

2 Commits

Author SHA1 Message Date
80bcb5e14b Merge pull request 'HOTFIX' (#304) from master into Docker
Reviewed-on: SGD-Nord/konova#304
2023-02-23 10:45:57 +01:00
e600b78c74 HOTFIX
* fixes bug where quality checker for compensations would not check properly for state surface sums
2023-02-23 10:44:44 +01:00

View File

@ -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")
)