Skip to content

Slight Fix For Type Conversion#5091

Merged
wyli merged 2 commits intoProject-MONAI:devfrom
ericspod:conversion-fix
Sep 6, 2022
Merged

Slight Fix For Type Conversion#5091
wyli merged 2 commits intoProject-MONAI:devfrom
ericspod:conversion-fix

Conversation

@ericspod
Copy link
Copy Markdown
Member

@ericspod ericspod commented Sep 6, 2022

Signed-off-by: Eric Kerfoot [email protected]

Description

Using view to avoid copying doesn't actually work as intended in the type conversion to use astype.

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 --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@ericspod ericspod requested a review from Nic-Ma September 6, 2022 12:39
@ericspod
Copy link
Copy Markdown
Member Author

ericspod commented Sep 6, 2022

Hi @Nic-Ma I realised the late change I did in the last PR isn't actually correct, I've changed it and modified the test. Thanks!

@wyli
Copy link
Copy Markdown
Contributor

wyli commented Sep 6, 2022

/build

@wyli wyli enabled auto-merge (squash) September 6, 2022 12:58
@wyli wyli merged commit 8c4127b into Project-MONAI:dev Sep 6, 2022
wyli pushed a commit to yashika-git/MONAI that referenced this pull request Sep 6, 2022
Signed-off-by: Eric Kerfoot <[email protected]>

### Description
Using `view` to avoid copying doesn't actually work as intended in the type conversion to use `astype`.

### Status
**Ready**

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] 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  --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/` folder.

Signed-off-by: Eric Kerfoot <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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.

2 participants