Skip to content

Conversation

@rmjarvis
Copy link
Member

@rmjarvis rmjarvis commented Dec 8, 2025

This mostly just adds a bit of documentation about RealGalazyCatalog.close, which hadn't been documented. I suspect having it documented would have helped @jecampagne with the problem he reported in #1333.

I also changed the implementation very slightly to also clear out the cached noise images, even though they are usually negligible. If people want to release memory manually, I figure we might as well release all of the cached stuff.

@rmjarvis rmjarvis linked an issue Dec 8, 2025 that may be closed by this pull request
@rmjarvis rmjarvis added docs Related to documentation inputs Related to input files used by GalSim, such as the cosmos data, SEDs, bandpasses, etc. labels Dec 8, 2025
@rmjarvis rmjarvis added this to the v2.7 milestone Dec 8, 2025
Copy link
Member

@rmandelb rmandelb left a comment

Choose a reason for hiding this comment

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

LGTM. Optional suggestion: I think it could be helpful to have a one-line note in the RealGalaxyCatalog class documentation noting that if memory management is an issue with the various caching steps then the close function could be helpful.

rmjarvis and others added 2 commits December 9, 2025 00:29
Co-authored-by: Rachel Mandelbaum <rmandelb@andrew.cmu.edu>
@rmjarvis
Copy link
Member Author

rmjarvis commented Dec 9, 2025

@rmandelb Good idea. Done.

@rmjarvis rmjarvis merged commit bb4274c into main Dec 9, 2025
10 checks passed
@rmjarvis rmjarvis deleted the #1333 branch December 9, 2025 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Related to documentation inputs Related to input files used by GalSim, such as the cosmos data, SEDs, bandpasses, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Curious Out Of Memory during looping on Cosmos Catalogue

3 participants