Repository navigation
Say which dataset each remaining task works with - #1548
Conversation
Thirteen task docstrings had no "Works with :class:`~pyhealth.datasets.X`." line, so their RTD pages, the dataset pages' task lists and the website cards showed no dataset for them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test CoverageTotal: 84.95% (39721 / 46760 lines)
|
|
/review |
There was a problem hiding this comment.
AI Review
suggestion: approve
decision: approve
Thank you for this contribution. Adding the "Works with" line to the remaining task docstrings means each task now shows its dataset on its API page, in the dataset task lists and on the website cards. The MEDS "Getting the data" section also now links to the MEDS documentation.
The change only touches docstrings in self-contained task classes and one dataset docstring. The dataset named in each task matches the one the task uses. It adds no new components and no new sharing between components. The docs match the code.
Coverage meets the bar. The whole repository is at 84.95%, above the 60% minimum. Every changed file is above 80%, from 92.31% to 100%. No new tests are needed for a docstring-only change.
It looks ready to merge.
Reviewed commit 2874e60
Thirteen task docstrings had no
Works with :class:~pyhealth.datasets.X.line. Because of that, they show no dataset in three places: their own API pages, the "Tasks for this dataset" list on the dataset pages (built bydocs/extensions/dataset_tasks.py), and the task cards on pyhealth.dev (the nightly sync in sunlabuiuc/pyhealth.github.io#33 listed them as "no dataset cited").This adds the line after each docstring's summary sentence, where the other tasks have it. Each dataset is the one the task's code or example uses:
CHAOSLiverSegmentationCTMRI,CHAOSLiverSegmentationCTonly,CHAOSLiverSegmentationMRIonly,CHAOSAbdominalSegmentationCTMRI,CHAOSAbdominalSegmentationMRIonlyCHAOSDatasetEthosTimelineMEDS,EthosOutcomeMEDS,ICUAdmissionMEDS,ProlongedLengthOfStayMEDSMEDSDatasetMedModDecompensationMIMIC4MIMIC4DatasetCompetingRisksPBCPBCDatasetRSNAPneumoniaClassificationRSNAPneumoniaDatasetSurvivalTimeToEventGBSGGBSGDatasetThe change is docstrings only.
tools/check_pr_rules.pypasses, and so doestests/core/test_docs_dataset_tasks.py. I reran the site'sextract_metadata.pyagainst this branch: all 23 new tasks now cite a dataset.Also: the
MEDSDataset"Getting the data" section now points at the MEDS documentation (https://medical-event-data-standard.github.io/), which lists the available ETLs. The class docstring and the API page already linked it, but the getting-started section didn't.🤖 Generated with Claude Code