From 8c9934b69d3bd3bab1a77da19775f470694412fe Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Tue, 20 Apr 2021 12:37:35 +0100 Subject: [PATCH] fixes tutorial issue 184 Signed-off-by: Wenqi Li --- monai/utils/jupyter_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/utils/jupyter_utils.py b/monai/utils/jupyter_utils.py index efe5519239..3bf443246e 100644 --- a/monai/utils/jupyter_utils.py +++ b/monai/utils/jupyter_utils.py @@ -320,7 +320,7 @@ def status(self) -> str: """Returns a status string for the current state of the engine.""" stats = self.status_dict - msgs = [stats.pop(StatusMembers.STATUS.value), "Iters: " + str(stats.pop(StatusMembers.ITERS.value))] + msgs = [stats.pop(StatusMembers.STATUS.value), "Iters: " + str(stats.pop(StatusMembers.ITERS.value, 0))] for key, val in stats.items(): if isinstance(val, float):