Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2948 Enhance the transform to delete items #2952

Merged
merged 9 commits into from
Sep 15, 2021

Conversation

Nic-Ma
Copy link
Contributor

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

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

Nic-Ma commented Sep 15, 2021

/black

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

wyli commented Sep 15, 2021

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

Nic-Ma commented Sep 15, 2021

/black

Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Sep 15, 2021

/black

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Sep 15, 2021

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.

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.

Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Sep 15, 2021

/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