Skip to content

4791 Adapt affine arg to the Spacing transform#4792

Merged
wyli merged 11 commits intoProject-MONAI:devfrom
Nic-Ma:4791-adapt-affine
Aug 1, 2022
Merged

4791 Adapt affine arg to the Spacing transform#4792
wyli merged 11 commits intoProject-MONAI:devfrom
Nic-Ma:4791-adapt-affine

Conversation

@Nic-Ma
Copy link
Copy Markdown
Contributor

@Nic-Ma Nic-Ma commented Jul 29, 2022

Fixes #4791 .

Description

This PR adapted the deprecated affine arg to the Spacing transform.
Similar to the AsDiscrete transform:
https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/post/array.py#L244

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.

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 29, 2022

/black

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 29, 2022

/build

@Nic-Ma Nic-Ma requested review from KumoLiu, ericspod, rijobro and wyli July 29, 2022 03:13
@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 29, 2022

/black

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 29, 2022

/build

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.

The implementati logic is fine but we may discuss whether to remove the deprecated args in the upcoming release.

@Nic-Ma Nic-Ma enabled auto-merge (squash) July 30, 2022 00:48
@wyli wyli disabled auto-merge August 1, 2022 12:20
@wyli wyli enabled auto-merge (squash) August 1, 2022 12:20
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Aug 1, 2022

/build

@wyli wyli merged commit 30d592c into Project-MONAI:dev Aug 1, 2022
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.

Unused 'affine' argument in Spacing transform

2 participants