Skip to content

Commit

Permalink
auto updates (Project-MONAI#7132)
Browse files Browse the repository at this point in the history
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
  • Loading branch information
monai-bot authored Oct 16, 2023
1 parent 8a70678 commit 0a3cdd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions monai/apps/deepedit/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0a3cdd9

Please sign in to comment.