Skip to content

2948 Enhance the transform to delete items#2952

Merged
Nic-Ma merged 9 commits into
Project-MONAI:devfrom
Nic-Ma:2948-enhance-delete-items
Sep 15, 2021
Merged

2948 Enhance the transform to delete items#2952
Nic-Ma merged 9 commits into
Project-MONAI:devfrom
Nic-Ma:2948-enhance-delete-items

Conversation

@Nic-Ma

@Nic-Ma Nic-Ma commented Sep 15, 2021

Copy link
Copy Markdown
Contributor

Fixes #2948 .

Description

This PR enhanced DeleteItemsd transform to support recursive delete in dicts.

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

Nic-Ma commented Sep 15, 2021

Copy link
Copy Markdown
Contributor Author

/black

@Nic-Ma Nic-Ma requested review from ericspod, rijobro and wyli September 15, 2021 03:43
@wyli

wyli commented Sep 15, 2021

Copy link
Copy Markdown
Contributor

There are potentially lots of meta tags per image, we'll need a better way to handle this, perhaps with a regular expression?

Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma Nic-Ma force-pushed the 2948-enhance-delete-items branch from 2f5d459 to 80e7a84 Compare September 15, 2021 10:17
@Nic-Ma

Nic-Ma commented Sep 15, 2021

Copy link
Copy Markdown
Contributor Author

/black

Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma

Nic-Ma commented Sep 15, 2021

Copy link
Copy Markdown
Contributor Author

/black

@Nic-Ma

Nic-Ma commented Sep 15, 2021

Copy link
Copy Markdown
Contributor Author

Hi @wyli ,

I have updated the PR to support nested dicts and regular expression according to your comments.
Could you please help review it again?

Thanks in advance.

@wyli wyli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma

Nic-Ma commented Sep 15, 2021

Copy link
Copy Markdown
Contributor Author

/black

@Nic-Ma Nic-Ma enabled auto-merge (squash) September 15, 2021 10:39
@Nic-Ma Nic-Ma merged commit c624ffc into Project-MONAI:dev Sep 15, 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.

Training on dicom images throws key errors: "0008|0005", "0008|1050" or similar

2 participants