Skip to content

Conversation

@wyli
Copy link
Contributor

@wyli wyli commented Nov 2, 2021

Signed-off-by: Wenqi Li wenqil@nvidia.com

follow-up of #3235

Description

File "/home/jenkins/agent/workspace/MONAI-premerge/monai/monai/transforms/utils.py", line 167, in rescale_array

    norm = (arr - mina) / (maxa - mina)  # normalize the array first

RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead.

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.

@wyli wyli requested review from Nic-Ma, ericspod and rijobro November 2, 2021 16:52
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@wyli wyli enabled auto-merge (squash) November 2, 2021 17:21
@wyli
Copy link
Contributor Author

wyli commented Nov 2, 2021

/build

@wyli wyli merged commit aabcfed into Project-MONAI:dev Nov 2, 2021
@wyli wyli deleted the fixes-rescale branch November 2, 2021 19:59
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.

3 participants