Skip to content

Conversation

@emolter
Copy link
Collaborator

@emolter emolter commented Jun 24, 2025

This PR removes the memmap option from ModelContainer. No changelog is needed because memmap was not documented as an available parameter anywhere, including in the ModelContainer docstring.

See also #9590 which will allow ModelContainer to pass keyword arguments through to datamodels.open() on individual models, which is related but either PR could go in first (rebasing the second one).

This PR must be merged before it is safe to merge spacetelescope/stdatamodels#507

Tasks

  • If you have a specific reviewer in mind, tag them.
  • add a build milestone, i.e. Build 12.0 (use the latest build if not sure)
  • Does this PR change user-facing code / API? (if not, label with no-changelog-entry-needed)
    • write news fragment(s) in changes/: echo "changed something" > changes/<PR#>.<changetype>.rst (see changelog readme for instructions)
    • update or add relevant tests
    • update relevant docstrings and / or docs/ page
    • start a regression test and include a link to the running job (click here for instructions)
      • Do truth files need to be updated ("okified")?
        • after the reviewer has approved these changes, run okify_regtests to update the truth files
  • if a JIRA ticket exists, make sure it is resolved properly

@emolter emolter added this to the Build 12.1 milestone Jun 24, 2025
@codecov
Copy link

codecov bot commented Jun 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.48%. Comparing base (9e9491b) to head (2852f0d).
⚠️ Report is 445 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##            main    #9593       +/-   ##
==========================================
+ Coverage   0.00%   79.48%   +79.48%     
==========================================
  Files        368      368               
  Lines      37228    37228               
==========================================
+ Hits           0    29589    +29589     
+ Misses     37228     7639    -29589     

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

@emolter
Copy link
Collaborator Author

emolter commented Jun 25, 2025

"""

def __init__(self, init=None, asn_exptypes=None, asn_n_members=None, **kwargs):
def __init__(self, init=None, asn_exptypes=None, asn_n_members=None, **kwargs): # noqa: ARG002
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is needed to allow keywords to be passed in but ignored, which is the current behavior. see #9590 where this will be fixed

@emolter emolter marked this pull request as ready for review June 26, 2025 18:48
@emolter emolter requested a review from a team as a code owner June 26, 2025 18:48
Copy link
Collaborator

@melanieclarke melanieclarke left a comment

Choose a reason for hiding this comment

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

LGTM

@emolter emolter merged commit e13931d into spacetelescope:main Jul 7, 2025
29 checks passed
@emolter emolter deleted the remove-memmap branch July 7, 2025 17:20
@tapastro tapastro modified the milestones: Build 12.1, 12.0.1 Jul 11, 2025
@tapastro
Copy link
Contributor

@meeseeksdev backport to release/1.19.x

meeseeksmachine pushed a commit to meeseeksmachine/jwst that referenced this pull request Jul 11, 2025
tapastro pushed a commit that referenced this pull request Jul 11, 2025
… of memmap in container) (#9633)

Co-authored-by: Ned Molter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants