Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@braingram
Copy link
Collaborator

@braingram braingram commented May 7, 2025

Closes #486

Adds a test for and fixes an issue where a node could not be deepcopied after use (where _schema_attributes is cached).

Regtests: https://github.com/spacetelescope/RegressionTests/actions/runs/14893660078

Oldest deps failure is unrelated.

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 May 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.45%. Comparing base (087a60d) to head (990356b).
⚠️ Report is 170 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #511      +/-   ##
==========================================
- Coverage   97.56%   97.45%   -0.11%     
==========================================
  Files          30       37       +7     
  Lines        2788     3773     +985     
==========================================
+ Hits         2720     3677     +957     
- Misses         68       96      +28     

☔ 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.

@braingram braingram marked this pull request as ready for review May 7, 2025 21:31
@braingram braingram requested a review from a team as a code owner May 7, 2025 21:31
Copy link
Collaborator

@PaulHuwe PaulHuwe left a comment

Choose a reason for hiding this comment

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

Nice fix

@braingram braingram merged commit 692d13d into spacetelescope:main May 8, 2025
18 of 20 checks passed
@braingram braingram deleted the fix_copy branch May 8, 2025 12:47
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.

cached _schema_attributes causes DNode to fail copy

2 participants