Skip to content

Make MetaTensor optional printed in DataStats and DataStatsd #5905 - #7814

Merged
KumoLiu merged 16 commits into
Project-MONAI:devfrom
slicepaste:fix-issue-5905
Sep 4, 2024
Merged

Make MetaTensor optional printed in DataStats and DataStatsd #5905#7814
KumoLiu merged 16 commits into
Project-MONAI:devfrom
slicepaste:fix-issue-5905

Conversation

@slicepaste

Copy link
Copy Markdown
Contributor

Fixes #5905

Description

We simply add one argument for DataStats and DataStatsd to make MetaTensor optional printed.

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.

slicepaste and others added 2 commits May 30, 2024 18:04
Signed-off-by: Wei_Chuan, Chiang <jamesis1356@gmail.com>
@slicepaste slicepaste changed the title Fixes #5905 Make MetaTensor optional printed in DataStats and Datastatsd #5905 May 30, 2024
Comment thread monai/transforms/utility/array.py Outdated
@slicepaste slicepaste changed the title Make MetaTensor optional printed in DataStats and Datastatsd #5905 Make MetaTensor optional printed in DataStats and DataStatsd #5905 May 30, 2024
@KumoLiu

KumoLiu commented May 31, 2024

Copy link
Copy Markdown
Contributor

@slicepaste, after change the argument, please also try run ./runtests.sh --autofix to fix the format issue.
https://github.com/Project-MONAI/MONAI/actions/runs/9312809059/job/25634185420?pr=7814#step:7:375

Thanks!

@slicepaste

slicepaste commented May 31, 2024

Copy link
Copy Markdown
Contributor Author

I'll figure out recently. Thanks for the reminder.

KumoLiu and others added 2 commits June 3, 2024 16:22
Fixes Project-MONAI#7697

### Description

A few sentences describing the changes proposed in this pull request.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] 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.

---------

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Fixes Project-MONAI#7646 

### Description

A few sentences describing the changes proposed in this pull request.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] 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).
- [x] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Co-authored-by: Ben Murray <ben.murray@gmail.com>
Signed-off-by: Wei_Chuan, Chiang <jamesis1356@gmail.com>
Signed-off-by: Wei_Chuan, Chiang <jamesis1356@gmail.com>
@slicepaste

slicepaste commented Jun 13, 2024

Copy link
Copy Markdown
Contributor Author

@KumoLiu
I have fixed the argument and formatting problem, I would appreciate it if you could review this issue.
If there are any additional changes, please let me know.
Thank you very much!

Comment thread monai/transforms/utility/array.py Outdated
@KumoLiu

KumoLiu commented Aug 26, 2024

Copy link
Copy Markdown
Contributor

Hi @slicepaste, do you plan to finish this PR? If we want to include the change in version 1.4, we only have about one or two weeks left to add new things. Thanks!

@slicepaste

Copy link
Copy Markdown
Contributor Author

Hi @KumoLiu ,
Sure, I'll finish this PR in the next few days. Thanks for the reminder!

slicepaste and others added 6 commits August 28, 2024 15:44
Signed-off-by: Wei_Chuan, Chiang <jamesis1356@gmail.com>
Signed-off-by: Wei_Chuan, Chiang <jamesis1356@gmail.com>
Signed-off-by: Wei_Chuan, Chiang <jamesis1356@gmail.com>

@KumoLiu KumoLiu 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.

LGTM now, thanks for the quick update.

@KumoLiu
KumoLiu requested a review from ericspod August 28, 2024 10:25
@KumoLiu

KumoLiu commented Sep 4, 2024

Copy link
Copy Markdown
Contributor

/build

@KumoLiu
KumoLiu enabled auto-merge (squash) September 4, 2024 09:53
@KumoLiu
KumoLiu merged commit 19cc6f0 into Project-MONAI:dev Sep 4, 2024
@slicepaste
slicepaste deleted the fix-issue-5905 branch September 19, 2024 05:02
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.

verbose DataStats for metatensor

3 participants