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-30445: Add optional Archive element to stamps #242

Merged
merged 6 commits into from Jun 11, 2021

Conversation

MorganSchmitz
Copy link
Contributor

Copy link
Contributor

@SimonKrughoff SimonKrughoff left a comment

Choose a reason for hiding this comment

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

I do think we need to test with use_archive=True and use_archive=False, but other than that, it looks good.

python/lsst/meas/algorithms/stamps.py Show resolved Hide resolved
metadata = PropertyList()
metadata['RA_DEG'] = ras
metadata['DEC_DEG'] = decs

return stamps.Stamps(stamp_list, metadata=metadata)
return stamps.Stamps(stamp_list, metadata=metadata, use_archive=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we also need a test that uses the default of use_archive=False. I don't think we necessarily need a duplicate test for True and False for all tests, but maybe test with the default in most tests and have a specific test that uses True?

This avoids having to pass on each archive_element separately;
I think it might also prove more practical again in the future to have
writeFits have access to the full Stamps objects.
@MorganSchmitz MorganSchmitz merged commit 6150d08 into master Jun 11, 2021
@MorganSchmitz MorganSchmitz deleted the tickets/DM-30445 branch June 11, 2021 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants