Skip to content

move transforms out of compose file#1623

Merged
rijobro merged 9 commits intoProject-MONAI:masterfrom
rijobro:move_transform_out_from_compose
Feb 24, 2021
Merged

move transforms out of compose file#1623
rijobro merged 9 commits intoProject-MONAI:masterfrom
rijobro:move_transform_out_from_compose

Conversation

@rijobro
Copy link
Copy Markdown
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

@wyli
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

rijobro commented Feb 24, 2021

Signed-off-by: Richard Brown <[email protected]>
Signed-off-by: Richard Brown <[email protected]>
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.

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