Skip to content

Commit

Permalink
Improve is_forward_model_finished
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInFez committed Feb 20, 2019
1 parent cf810fd commit 6a350ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions python/python/ert_gui/simulation/models/base_run_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6a350ba

Please sign in to comment.