Skip to content

add user warnings in AsChannelFirst and AddChannel#4732

Merged
wyli merged 8 commits intoProject-MONAI:devfrom
KumoLiu:AddChannel-user-warning
Jul 21, 2022
Merged

add user warnings in AsChannelFirst and AddChannel#4732
wyli merged 8 commits intoProject-MONAI:devfrom
KumoLiu:AddChannel-user-warning

Conversation

@KumoLiu
Copy link
Copy Markdown
Contributor

@KumoLiu KumoLiu commented Jul 20, 2022

Fixes # .

Description

add user warnings in AsChannelFirst and AddChannel to recommend users use EnsureChannelFirst.

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.

@KumoLiu KumoLiu requested review from Nic-Ma and wyli July 20, 2022 10:37
@Nic-Ma
Copy link
Copy Markdown
Contributor

Nic-Ma commented Jul 20, 2022

KumoLiu added 3 commits July 21, 2022 11:42
Signed-off-by: KumoLiu <[email protected]>
Signed-off-by: KumoLiu <[email protected]>
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Jul 21, 2022

/build

@wyli wyli enabled auto-merge (squash) July 21, 2022 07:47
@Nic-Ma Nic-Ma disabled auto-merge July 21, 2022 07:58
@Nic-Ma
Copy link
Copy Markdown
Contributor

Nic-Ma commented Jul 21, 2022

Hi @wyli ,

Should we also deprecate the dict version transforms?

Thanks.

@wyli
Copy link
Copy Markdown
Contributor

wyli commented Jul 21, 2022

@Nic-Ma I think calling the dictionary version should alreadyraise the array level warning?

@wyli wyli enabled auto-merge (squash) July 21, 2022 08:44
@wyli wyli merged commit 71c66ef into Project-MONAI:dev Jul 21, 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.

3 participants