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-47526: Add allow_missing_bands for multiband object fitting #1023

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

taranu
Copy link
Contributor

@taranu taranu commented Jan 14, 2025

No description provided.

Copy link
Contributor

@fred3m fred3m left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment on lines +381 to +387
catexp = CatalogExposureInputs(
catalog=afwTable.SourceCatalog(),
exposure=None,
table_psf_fits=astropy.table.Table(),
dataId=dataId.from_simple(dataId_band, universe=dataId.universe),
id_tract_patch=id_tp,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would be useful to have an EmptyExposureInputs class that inherits from CatalogExposureInputs but only takes a dataId and id_tract_patch. This would make it clear here that this is just a placeholder.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, it's possible. I was also consider just implementing an is_dummy/is_placeholder method that just returns len(self.catalog) == 0. I decided to defer committing to a particular interface until I have a clearer understanding of the benefits/drawbacks of dummy data.

@taranu taranu merged commit 8ffcb69 into main Jan 16, 2025
2 checks passed
@taranu taranu deleted the tickets/DM-47526 branch January 16, 2025 20:01
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