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

Add memory checking function(s) #245

Open
braingram opened this issue Mar 4, 2024 · 0 comments
Open

Add memory checking function(s) #245

braingram opened this issue Mar 4, 2024 · 0 comments

Comments

@braingram
Copy link
Collaborator

stdatamodels currently provides check_memory_allocation:
https://github.com/spacetelescope/stdatamodels/blob/e1ebc483f574f03057e2474bb5cbef38f101735c/src/stdatamodels/jwst/datamodels/util.py#L392
which is designed to check the (ideally estimated) memory consumption of a model against the available memory. This is useful for steps like resample and outlier_detection in both jwst and romancal to support the allowed_memory option:
https://jwst-pipeline.readthedocs.io/en/latest/jwst/outlier_detection/arguments.html#step-arguments-for-non-ifu-data
The romancal code is not using stdatamodels (as it does not depend on that package). As mentioned spacetelescope/jwst#8324 (comment) stcal might be a suitable location for some shared code to check estimated memory against available memory during processing.

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

No branches or pull requests

1 participant