Skip to content

PatchWSIDataset#1835

Merged
bhashemian merged 27 commits intoProject-MONAI:masterfrom
bhashemian:behrooz_patch_wsi_dataset
Mar 25, 2021
Merged

PatchWSIDataset#1835
bhashemian merged 27 commits intoProject-MONAI:masterfrom
bhashemian:behrooz_patch_wsi_dataset

Conversation

@bhashemian
Copy link
Copy Markdown
Member

@bhashemian bhashemian commented Mar 24, 2021

Description

It adds two datasets for pathology use cases: PatchWSIDataset and SmartCachePatchWSIDataset. They extract patches on a grid from whole slide images and associate them with their corresponding labels.

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.

@bhashemian bhashemian requested review from Nic-Ma and wyli March 24, 2021 02:43
@bhashemian bhashemian removed request for Nic-Ma and wyli March 24, 2021 03:20
@bhashemian
Copy link
Copy Markdown
Member Author

bhashemian commented Mar 24, 2021

@wyli @Nic-Ma , do you know what the problem is here? https://github.com/Project-MONAI/MONAI/pull/1835/checks?check_run_id=2188219644#step:7:217

/home/runner/work/MONAI/MONAI/monai/apps/pathology/datasets.py:docstring of monai.apps.pathology.datasets.SmartCachePatchWSIDataset:37: WARNING: Unexpected indentation.
/home/runner/work/MONAI/MONAI/monai/apps/pathology/datasets.py:docstring of monai.apps.pathology.datasets.SmartCachePatchWSIDataset:38: WARNING: Block quote ends without a blank line; unexpected unindent.
/home/runner/work/MONAI/MONAI/monai/apps/pathology/datasets.py:docstring of monai.apps.pathology.datasets.SmartCachePatchWSIDataset:44: WARNING: Definition list ends without a blank line; unexpected unindent.

It seems that it is somehow related to SmartCacheDataset in class SmartCachePatchWSIDataset(SmartCacheDataset) because if I change it to class SmartCachePatchWSIDataset(Dataset), the doc compilation warning goes away!

@bhashemian bhashemian requested review from Nic-Ma and wyli March 24, 2021 22:07
Copy link
Copy Markdown
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.

@bhashemian
Copy link
Copy Markdown
Member Author

@wyli @Nic-Ma , do you know what the problem is here? https://github.com/Project-MONAI/MONAI/pull/1835/checks?check_run_id=2188219644#step:7:217

/home/runner/work/MONAI/MONAI/monai/apps/pathology/datasets.py:docstring of monai.apps.pathology.datasets.SmartCachePatchWSIDataset:37: WARNING: Unexpected indentation.
/home/runner/work/MONAI/MONAI/monai/apps/pathology/datasets.py:docstring of monai.apps.pathology.datasets.SmartCachePatchWSIDataset:38: WARNING: Block quote ends without a blank line; unexpected unindent.
/home/runner/work/MONAI/MONAI/monai/apps/pathology/datasets.py:docstring of monai.apps.pathology.datasets.SmartCachePatchWSIDataset:44: WARNING: Definition list ends without a blank line; unexpected unindent.

It seems that it is somehow related to SmartCacheDataset in class SmartCachePatchWSIDataset(SmartCacheDataset) because if I change it to class SmartCachePatchWSIDataset(Dataset), the doc compilation warning goes away!

@Nic-Ma @rijobro @ericspod Any thought on this?

@rijobro
Copy link
Copy Markdown
Contributor

rijobro commented Mar 25, 2021

I've created a PR to your branch @behxyz (didn't have push privilege). Think there was a problem in the docstring of the constructor of the inherited class. Solved the problem by moving that docstring inside the classes main docstring.

PR: bhashemian#3.

move init docstring to class docstring
Copy link
Copy Markdown
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

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

Looks good to me.
Thanks.

@wyli wyli enabled auto-merge (squash) March 25, 2021 14:49
@bhashemian bhashemian disabled auto-merge March 25, 2021 16:21
@bhashemian bhashemian enabled auto-merge (squash) March 25, 2021 16:22
@bhashemian bhashemian merged commit 7e7cd94 into Project-MONAI:master Mar 25, 2021
@bhashemian bhashemian deleted the behrooz_patch_wsi_dataset branch March 25, 2021 18:04
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.

4 participants