Skip to content

3292 Fix the issue that keys[0] may not exist when allow_missing_keys is True#3305

Merged
wyli merged 9 commits into
Project-MONAI:devfrom
Nic-Ma:3292-fix-keys0-issue
Nov 10, 2021
Merged

3292 Fix the issue that keys[0] may not exist when allow_missing_keys is True#3305
wyli merged 9 commits into
Project-MONAI:devfrom
Nic-Ma:3292-fix-keys0-issue

Conversation

@Nic-Ma

@Nic-Ma Nic-Ma commented Nov 10, 2021

Copy link
Copy Markdown
Contributor

Fixes #3292 .

Description

This PR fixed the issue that when getting spatial size from keys[0] to represent all the keys, it may not exist when allow_missing_keys is True.

Status

Ready

Types of changes

  • 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.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@Nic-Ma

Nic-Ma commented Nov 10, 2021

Copy link
Copy Markdown
Contributor Author

/black

@Nic-Ma

Nic-Ma commented Nov 10, 2021

Copy link
Copy Markdown
Contributor Author

/build

@Nic-Ma Nic-Ma requested review from ericspod, rijobro and wyli November 10, 2021 16:08
@wyli

wyli commented Nov 10, 2021

Copy link
Copy Markdown
Contributor

/build

@wyli

wyli commented Nov 10, 2021

Copy link
Copy Markdown
Contributor

/build

@wyli wyli enabled auto-merge (squash) November 10, 2021 20:34
@wyli wyli merged commit 26b71a3 into Project-MONAI:dev Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RandAffined fails with KeyError when allow_missing_keys and key at index 0 is missing

3 participants