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

DM-47738: Do not remove scarlet models while building catalog footprints #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fred3m
Copy link

@fred3m fred3m commented Feb 6, 2025

No description provided.

@@ -217,7 +217,7 @@ def from_butler(
catalog=catalog,
band=data_id["band"],
imageForRedistribution=exposure,
removeScarletData=True,
removeScarletData=False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you mentioned that to accomplish the original goal of this line, you have to call... models_scarlet.clear() after the loop over bands? Is that right?

Copy link
Author

Choose a reason for hiding this comment

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

You don't have to call that, and I think it would be something like models_scarlet.blends.clear(). I didn't bother because models_scarlet doesn't exist outside the scope of this method (I might not have realized that when we talked about it previously) so it will be garbage collected once this function is completed anyway.

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

Successfully merging this pull request may close these issues.

2 participants