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

3600 Apply unused kwargs for 3rd party APIs in WSIReader #3601

Merged
merged 11 commits into from
Jan 7, 2022

Conversation

Nic-Ma
Copy link
Contributor

@Nic-Ma Nic-Ma commented Jan 7, 2022

Fixes #3600 .

Description

This PR applied the unused kwargs arg in WSIReader for the additional args of 3rd party APIs, like:
https://scikit-image.org/docs/0.14.x/api/skimage.external.tifffile.html#skimage.external.tifffile.TiffFile
https://openslide.org/api/python/#openslide.OpenSlide
https://github.com/rapidsai/cucim/blob/v21.12.00/cpp/include/cucim/cuimage.h#L100

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.

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Jan 7, 2022

/black

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Jan 7, 2022

/build

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Jan 7, 2022

/build

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

Nic-Ma commented Jan 7, 2022

/build

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.

It seems openslide doesn't support additional arguments in the constructor, otherwise it looks good

monai/data/image_reader.py Outdated Show resolved Hide resolved
Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Jan 7, 2022

/black

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Jan 7, 2022

/build

@Nic-Ma Nic-Ma enabled auto-merge (squash) January 7, 2022 09:26
@Nic-Ma Nic-Ma merged commit 1913086 into Project-MONAI:dev Jan 7, 2022
Can-Zhao pushed a commit to Can-Zhao/MONAI that referenced this pull request Jan 10, 2022
…ONAI#3601)

* [DLMED] add kwargs

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

* [DLMED] add unit test

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

* [DLMED] fix doc typo

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

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
wyli pushed a commit that referenced this pull request Jan 10, 2022
* [DLMED] add kwargs

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

* [DLMED] add unit test

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

* [DLMED] fix doc typo

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

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
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.

Missed to apply kwargs in WSIReader
2 participants