Skip to content

[1823] allow None for switch endianness#1824

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

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

Conversation

@rijobro

@rijobro rijobro commented Mar 22, 2021

Copy link
Copy Markdown
Contributor

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.

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
@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

@wyli wyli left a comment

Copy link
Copy Markdown
Contributor

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 <33289025+rijobro@users.noreply.github.com>
@rijobro

rijobro commented Mar 22, 2021

Copy link
Copy Markdown
Contributor Author

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

@wyli

wyli commented Mar 22, 2021

Copy link
Copy Markdown
Contributor

/black

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
@wyli wyli enabled auto-merge (squash) March 22, 2021 17:51
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@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