Skip to content

2571 add DecollateBatch handler#2584

Merged
Nic-Ma merged 15 commits intoProject-MONAI:devfrom
Nic-Ma:2571-add-decollate-handler
Jul 14, 2021
Merged

2571 add DecollateBatch handler#2584
Nic-Ma merged 15 commits intoProject-MONAI:devfrom
Nic-Ma:2571-add-decollate-handler

Conversation

@Nic-Ma
Copy link
Copy Markdown
Contributor

@Nic-Ma Nic-Ma commented Jul 12, 2021

Fixes #2571 .

Description

This PR added the DecollateBatch handler to provide a more flexible operation to decollate the batch.

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.

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 12, 2021

/black

@Nic-Ma Nic-Ma requested review from ericspod, rijobro and wyli July 12, 2021 23:20
monai-bot and others added 2 commits July 12, 2021 23:24
@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 12, 2021

/black

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, I put suggestions of refactoring. while looking at the Decollated transform,

Note that unlike most MapTransforms, this will decollate all data, so keys are not needed.

any idea why we don't allow for decollating a few user-specified keys? it might be useful for quickly decollating a few items from data, if decollate_batch(rep_scalar_to_batch(...)) is not flexible enough for the users

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 13, 2021

/black

@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 13, 2021

Hi @wyli ,

Thanks for your review.
I updated the PR according to your comments.
Could you please help review it again?

Thanks in advance.

Signed-off-by: Nic Ma <[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, these are non-breaking changes that improve flexibility.

@Nic-Ma Nic-Ma force-pushed the 2571-add-decollate-handler branch from 10c87d1 to 513519f Compare July 13, 2021 22:37
@Nic-Ma
Copy link
Copy Markdown
Contributor Author

Nic-Ma commented Jul 13, 2021

/black

@Nic-Ma Nic-Ma enabled auto-merge (squash) July 13, 2021 22:37
@Nic-Ma Nic-Ma force-pushed the 2571-add-decollate-handler branch from 513519f to 182df87 Compare July 13, 2021 22:50
@Nic-Ma Nic-Ma merged commit 134b588 into Project-MONAI:dev Jul 14, 2021
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.

No Post-processing Without Decollate!

3 participants