From b0ed253440a563b54c5e929dc10d95d10ec2f628 Mon Sep 17 00:00:00 2001 From: Bartosz Grabowski <58475557+bartosz-grabowski@users.noreply.github.com> Date: Thu, 20 Feb 2025 09:44:10 +0100 Subject: [PATCH] Fix CommonKeys docstring (#8342) ### Description `CommonKeys()` docstring mentions `INFO` which doesn't exist. Instead there is a `METADATA` field, so the docstring was updated accordingly. ### Types of changes - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: Bartosz Grabowski <58475557+bartosz-grabowski@users.noreply.github.com> Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- monai/utils/enums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/utils/enums.py b/monai/utils/enums.py index 1fbf3ffa05..ac14134acc 100644 --- a/monai/utils/enums.py +++ b/monai/utils/enums.py @@ -335,7 +335,7 @@ class CommonKeys(StrEnum): `LABEL` is the training or evaluation label of segmentation or classification task. `PRED` is the prediction data of model output. `LOSS` is the loss value of current iteration. - `INFO` is some useful information during training or evaluation, like loss value, etc. + `METADATA` is some useful information during training or evaluation, like loss value, etc. """