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 intoProject-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 intoProject-MONAI:devfrom
Nic-Ma:3292-fix-keys0-issue

Conversation

@Nic-Ma
Copy link
Copy Markdown
Contributor

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

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
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Nov 10, 2021

/black

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Nov 10, 2021

/build

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

wyli commented Nov 10, 2021

/build

@wyli
Copy link
Copy Markdown
Contributor

wyli commented Nov 10, 2021

/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