-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Refactor Dataset to use Compose for transforms #7784
Conversation
Signed-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
Signed-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
Hi @surajpaib thanks for the contribution. I think that the other classes inheriting from |
Hi @ericspod Thanks for your comments. I'll replace the type check tests with return value based tests for expected functionality. As for the classes inheriting from
Line 812 in 66a2fae
So ideally one would specify a If we want to make everything consistent, it would be the easiest to replace the Do you foresee any issues with forcing |
Hi @surajpaib your second proposal may make more sense actually. What we can do in the constructor for |
Signed-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
for more information, see https://pre-commit.ci
kwargs
on Dataset
for apply_transform
fn Dataset
to use Compose for transforms
Dataset
to use Compose for transformsSigned-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
Signed-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
ci error log:
|
Signed-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
The updated PR is ready for review. Noting some of the changes from the PR below,
Overall, I think these changes make the |
Signed-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
/build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with this now if everyone else is.
Co-authored-by: Ben Murray <ben.murray@gmail.com> Signed-off-by: Suraj Pai <b.pai@maastrichtuniversity.nl>
/build |
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>
Fixes #7646
Description
A few sentences describing the changes proposed in this pull request.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.