Skip to content

Conversation

@WilliamJamieson
Copy link
Collaborator

This PR is the downstream change for spacetelescope/rad#712.

Tasks

  • Update or add relevant roman_datamodels tests.
  • Update relevant docstrings and / or docs/ page.
  • Does this PR change any API used downstream? (If not, label with no-changelog-entry-needed.)
News fragment change types:
  • changes/<PR#>.feature.rst: new feature
  • changes/<PR#>.bugfix.rst: fixes an issue
  • changes/<PR#>.doc.rst: documentation change
  • changes/<PR#>.removal.rst: deprecation or removal of public API
  • changes/<PR#>.misc.rst: infrastructure or miscellaneous change

@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

❌ Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.54%. Comparing base (087a60d) to head (6944c90).
⚠️ Report is 198 commits behind head on main.

Files with missing lines Patch % Lines
src/roman_datamodels/stnode/_schema.py 95.45% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #577      +/-   ##
==========================================
- Coverage   97.56%   95.54%   -2.02%     
==========================================
  Files          30       41      +11     
  Lines        2788     4314    +1526     
==========================================
+ Hits         2720     4122    +1402     
- Misses         68      192     +124     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@WilliamJamieson WilliamJamieson force-pushed the explicit_pattern_properties branch from b9cbcbf to 34eb4ae Compare October 13, 2025 18:30
@WilliamJamieson WilliamJamieson marked this pull request as ready for review October 13, 2025 18:45
@WilliamJamieson WilliamJamieson requested a review from a team as a code owner October 13, 2025 18:45
@WilliamJamieson WilliamJamieson force-pushed the explicit_pattern_properties branch from 38c7737 to 6944c90 Compare October 13, 2025 19:07
Copy link
Collaborator

@braingram braingram left a comment

Choose a reason for hiding this comment

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

The version checks don't work with dev versions and make unsafe assumptions about asdf.

Comment on lines +46 to +47
# See Issue https://github.com/asdf-format/asdf/issues/1977
if Version(asdf.__version__) < Version("5.1.0"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# See Issue https://github.com/asdf-format/asdf/issues/1977
if Version(asdf.__version__) < Version("5.1.0"):
# See Issue https://github.com/asdf-format/asdf/issues/1977
if Version(asdf.__version__) < Version("5.1.0"):

This assumes a fix will be in asdf 5.1.0 which is not a safe assumption. I will follow up on the issue.

if TYPE_CHECKING:
from typing import Any

if Version(asdf.__version__) < Version("5.0.0"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if Version(asdf.__version__) < Version("5.0.0"):
if Version(asdf.__version__) < Version("5.0.0"):

This fails for dev asdf version strings:

>> Version("5.1.1.dev0+g0e7c50c73.d20251013")
ValueError: Invalid version string: '5.1.1.dev0+g0e7c50c73.d20251013'

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.

2 participants