From 6a350ba6a89b5d1d65fa4902e52c4cba2e116537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20Birkeland?= Date: Wed, 20 Feb 2019 08:41:09 +0100 Subject: [PATCH] Improve is_forward_model_finished --- python/python/ert_gui/simulation/models/base_run_model.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python/python/ert_gui/simulation/models/base_run_model.py b/python/python/ert_gui/simulation/models/base_run_model.py index f8cbcfce30d..3c5fcb4079e 100644 --- a/python/python/ert_gui/simulation/models/base_run_model.py +++ b/python/python/ert_gui/simulation/models/base_run_model.py @@ -229,11 +229,8 @@ def getProgress(self): @staticmethod def is_forward_model_finished(progress): - for job in progress: - if job.status != 'Success': - return False + return any((job.status == 'Failure' for job in progress)) - return True def updateDetailedProgress(self): if not self._run_context: