From 0a3cdd9f1403cbad057b96230840ee17cf430dbf Mon Sep 17 00:00:00 2001 From: monai-bot <64792179+monai-bot@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:59:43 +0100 Subject: [PATCH] auto updates (#7132) Signed-off-by: monai-bot Signed-off-by: monai-bot --- .github/workflows/pythonapp.yml | 1 + monai/apps/deepedit/transforms.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index c7e86b99a3..ad8b555dd4 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -234,5 +234,6 @@ jobs: make clean make html 2>&1 | tee tmp_log if [[ $(grep -c "ERROR:" tmp_log) != 0 ]]; then echo "found errors"; grep "ERROR:" tmp_log; exit 1; fi + sed '/WARNING.*pip/d' tmp_log > tmp_log1; mv tmp_log1 tmp_log # monai#7133 if [[ $(grep -c "WARNING:" tmp_log) != 0 ]]; then echo "found warnings"; grep "WARNING:" tmp_log; exit 1; fi shell: bash diff --git a/monai/apps/deepedit/transforms.py b/monai/apps/deepedit/transforms.py index 14060c6b0f..4c92b42c08 100644 --- a/monai/apps/deepedit/transforms.py +++ b/monai/apps/deepedit/transforms.py @@ -664,7 +664,7 @@ def __call__(self, data): meta_dict_key = self.meta_keys or f"{self.ref_image}_{self.meta_key_postfix}" # extract affine matrix from metadata if isinstance(d[self.ref_image], MetaTensor): - meta_dict = d[self.ref_image].meta # type: ignore + meta_dict = d[self.ref_image].meta elif meta_dict_key in d: meta_dict = d[meta_dict_key] else: @@ -710,7 +710,7 @@ def __call__(self, data): meta_dict_key = "image_meta_dict" # extract affine matrix from metadata if isinstance(d[self.ref_image], MetaTensor): - meta_dict = d[self.ref_image].meta # type: ignore + meta_dict = d[self.ref_image].meta elif meta_dict_key in d: meta_dict = d[meta_dict_key] else: