Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resample uses datamodel for temporary storage of iscale #8721

Closed
stscijgbot-jp opened this issue Aug 22, 2024 · 1 comment · Fixed by #8866
Closed

resample uses datamodel for temporary storage of iscale #8721

stscijgbot-jp opened this issue Aug 22, 2024 · 1 comment · Fixed by #8866

Comments

@stscijgbot-jp
Copy link
Collaborator

Issue JP-3713 was created on JIRA by Brett Graham:

resample during many_to_one uses the datamodel as temporary storage for iscale:

img.meta.iscale = iscale

that is later used during variance array resampling:

iscale = input_model.meta.iscale

and then removed from the model:

del img.meta.iscale

 

This forces resample to write out a temporary file for the model between science and variance array resampling. This could likely be avoided perhaps as part of a larger refactoring of resample to combine variance and science array resampling.

@stscijgbot-jp
Copy link
Collaborator Author

Comment by Melanie Clarke on JIRA:

Fixed by #8866

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant