From 3cf19d042fee021ab02e8eac4ac81ac8c24b7922 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 21 Nov 2023 13:03:31 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- monai/handlers/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monai/handlers/utils.py b/monai/handlers/utils.py index be9b48a812..6e177d5942 100644 --- a/monai/handlers/utils.py +++ b/monai/handlers/utils.py @@ -124,8 +124,8 @@ class mean median max 5percentile 95percentile notnans if class_labels is None: class_labels = ["class" + str(i) for i in range(v.shape[1])] else: - class_labels=[str(i) for i in class_labels] # ensure to have a list of str - + class_labels=[str(i) for i in class_labels] # ensure to have a list of str + class_labels += ["mean"] v = np.concatenate([v, np.nanmean(v, axis=1, keepdims=True)], axis=1)