Skip to content

Conversation

@rijobro
Copy link
Contributor

@rijobro rijobro commented Feb 23, 2021

refactor the Transform, MapTransform and Randomizable to live in transform.py instead of compose.py.

Needed for inverse transform PR.
#1515

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
@wyli
Copy link
Contributor

wyli commented Feb 23, 2021

this is potentially a breaking change in many cases, could you confirm @Nic-Ma?

@wyli wyli requested a review from Nic-Ma February 23, 2021 15:45
@rijobro
Copy link
Contributor Author

rijobro commented Feb 23, 2021

If it would create many breaking changes, we could always alias the Transform, Randomizable, and MapTransform back into compose.py.

I made these changes because the amount of code in these classes grew so it made sense to put them into their correct file (Transform isn't of type Compose).

I can do without this PR if it's deemed more effort than necessary, but I think it makes things cleaner.

@rijobro
Copy link
Contributor Author

rijobro commented Feb 24, 2021

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
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, this is a non-breaking module rearrangement

@rijobro rijobro enabled auto-merge (squash) February 24, 2021 17:57
@rijobro rijobro merged commit 3a1c459 into Project-MONAI:master Feb 24, 2021
@rijobro rijobro deleted the move_transform_out_from_compose branch February 25, 2021 08:36
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