Skip to content

Upgraded to MEDS v0.4#34

Merged
mmcdermott merged 1 commit intomainfrom
33_upgrade_MEDS_04
May 6, 2025
Merged

Upgraded to MEDS v0.4#34
mmcdermott merged 1 commit intomainfrom
33_upgrade_MEDS_04

Conversation

@mmcdermott
Copy link
Copy Markdown
Contributor

Closes #33

@mmcdermott mmcdermott requested a review from Copilot May 6, 2025 14:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades the codebase to MEDS v0.4 by replacing legacy schema field references with the new schema constants and updating version strings.

  • Updated import and usage of schema attributes (DataSchema, SubjectSplitSchema, CodeMetadataSchema) throughout the code
  • Adjusted dataset metadata to reflect the new MEDS version and updated dependency version in pyproject.toml
  • Switched numeric field types from double to float where applicable

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/meds_testing_helpers/infer_dataset_config.py Replaced legacy field names with DataSchema and SubjectSplitSchema values for improved consistency
src/meds_testing_helpers/dataset_generator.py Updated dataset creation to use new schema properties and updated meds_version from 0.3.3 to 0.4.0
src/meds_testing_helpers/dataset.py Changed DatasetMetadata to DatasetMetadataSchema, updated numeric types, and modified meds_version values
pyproject.toml Updated the meds dependency to use version "~=0.4.0"
Comments suppressed due to low confidence (1)

src/meds_testing_helpers/dataset.py:120

  • The version string '0.fake.version' appears to be a placeholder. Consider updating it to '0.4.0' to match the upgraded MEDS version for consistency.
meds_version: 0.fake.version

@codecov
Copy link
Copy Markdown

codecov bot commented May 6, 2025

Codecov Report

❌ Patch coverage is 89.36170% with 5 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/meds_testing_helpers/infer_dataset_config.py 54.54% 5 Missing ⚠️
Files with missing lines Coverage Δ
src/meds_testing_helpers/dataset.py 99.69% <100.00%> (-0.01%) ⬇️
src/meds_testing_helpers/dataset_generator.py 99.56% <100.00%> (ø)
src/meds_testing_helpers/infer_dataset_config.py 82.17% <54.54%> (-0.83%) ⬇️

@mmcdermott mmcdermott merged commit 65bce80 into main May 6, 2025
8 of 9 checks passed
@mmcdermott mmcdermott deleted the 33_upgrade_MEDS_04 branch May 6, 2025 15:15
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.

Upgrade to MEDS v0.4

2 participants