Skip to content

Fix stdshift type error#1907

Merged
Nic-Ma merged 5 commits intoProject-MONAI:masterfrom
yiheng-wang-nv:fix-stdshift_type_error
Mar 31, 2021
Merged

Fix stdshift type error#1907
Nic-Ma merged 5 commits intoProject-MONAI:masterfrom
yiheng-wang-nv:fix-stdshift_type_error

Conversation

@yiheng-wang-nv
Copy link
Contributor

Signed-off-by: Yiheng Wang vennw@nvidia.com

Description

This PR fixes the type error in StdShiftIntensity transform.

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.

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
@yiheng-wang-nv yiheng-wang-nv requested a review from Nic-Ma March 31, 2021 10:37
@Nic-Ma Nic-Ma requested a review from wyli March 31, 2021 10:38
Copy link
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

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

Looks good to me.
Could you please help add a test case to cover this new arg dtype?
For example, input data is int or float64, expected output is float32?

Thanks.

Copy link
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.

thanks

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
@Nic-Ma Nic-Ma enabled auto-merge (squash) March 31, 2021 11:02
@Nic-Ma Nic-Ma merged commit 2a7e1ce into Project-MONAI:master Mar 31, 2021
@yiheng-wang-nv yiheng-wang-nv deleted the fix-stdshift_type_error branch March 31, 2021 15:20
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