Skip to content

[1823] allow None for switch endianness#1824

Merged
wyli merged 4 commits intoProject-MONAI:masterfrom
rijobro:switch_endianness_fix
Mar 22, 2021
Merged

[1823] allow None for switch endianness#1824
wyli merged 4 commits intoProject-MONAI:masterfrom
rijobro:switch_endianness_fix

Conversation

@rijobro
Copy link
Copy Markdown
Contributor

@rijobro rijobro commented Mar 22, 2021

Fixes #1823.

Description

Allow None as type for switching endianness. Also improve print statement for previously unseen data types.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • 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.

@rijobro rijobro changed the title allow None for switch endianness [1823] allow None for switch endianness Mar 22, 2021
@rijobro rijobro added the bug Something isn't working label Mar 22, 2021
Copy link
Copy Markdown
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Richard Brown <[email protected]>
@rijobro
Copy link
Copy Markdown
Contributor Author

rijobro commented Mar 22, 2021

Added test as per your issue. Failed prior to change to switch_endianness and now passes.

@wyli
Copy link
Copy Markdown
Contributor

wyli commented Mar 22, 2021

/black

@wyli wyli enabled auto-merge (squash) March 22, 2021 17:51
@wyli wyli merged commit db2f47d into Project-MONAI:master Mar 22, 2021
@rijobro rijobro deleted the switch_endianness_fix branch May 4, 2021 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

switch_endianness assertion error with PILReader

3 participants