spacetelescope / jwst

Python library for science observations from the James Webb Space Telescope
https://jwst-pipeline.readthedocs.io/en/latest/
Other
570 stars 167 forks source link

Refactor model_blender to take in only necessary metadata #8685

Closed stscijgbot-jp closed 2 months ago

stscijgbot-jp commented 3 months ago

Issue JP-3701 was created on JIRA by Ned Molter:

The model_blender suite, which is called during calwebb_image3 by default (inside resample.resample_many_to_one), expects to take in an in-memory list of datamodels as input.  This poses a problem for the promised memory savings migration to ModelLibrary; we want to avoid loading multiple models into memory at once.  There are two options for how this could be fixed in the long-term:

Setting this to low priority because there is a workaround (suggested by Melanie Clarke), which is to set all the data arrays of each model to be empty before passing them as an in-memory list to model_blender.  This workaround is not yet tested but seems likely to work without bad consequences in the short term.

 

stscijgbot-jp commented 2 months ago

Comment by Melanie Clarke on JIRA:

Fixed by #8759

stscijgbot-jp commented 2 months ago

Comment by Melanie Clarke on JIRA:

No specific testing needed from INS. This was an internal refactor.