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-34826: Remove unnecessary characterize plugins from ap pipline #110

Merged
merged 2 commits into from May 26, 2022

Conversation

parejkoj
Copy link
Contributor

No description provided.

Copy link
Member

@kfindeisen kfindeisen left a comment

Choose a reason for hiding this comment

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

The changes look good, though I noted a few other plugins that maybe we don't need.

In the future, please try to break up such changes into individual commits (e.g., one for gaap, one for hsm, etc.). Seeing the plugins all at once made it much harder to check that all related configs had really been removed.

config/DECam/calibrate.py Show resolved Hide resolved
config/DECam/calibrate.py Show resolved Hide resolved
@@ -73,8 +73,6 @@
config.detection.isotropicGrow = True
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to keep the base_ClassificationExtendedness plugin on line 54?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As with DECam above, this isn't adding the plugin, but rather modifying its config. I'll do some further digging on the sfm.py default plugins. Those might be a bit harder to remove; see sfm.py:139 we'd have to at minimum remove items from that config list, instead of just removing lines that add new plugins as was done on this ticket.

config/HSC/characterizeImage.py Show resolved Hide resolved
config/LSSTCam-imSim/characterizeImage.py Show resolved Hide resolved
HSM is preferred over SdssShape, but we only need SourceMoments and PsfMoments
for AP.
@parejkoj
Copy link
Contributor Author

@kfindeisen : I've pushed an update that re-adds part of the the shapeHSM plugin. I've updated the jira ticket: this gets rid of all metric differences before association, and only three different association metrics (see the ticket). Please take a look at the new commit.


config.plugins.names |= ["ext_shapeHSM_HsmSourceMoments", "ext_shapeHSM_HsmPsfMoments"]
config.slots.shape = "ext_shapeHSM_HsmSourceMoments"
config.slots.psfShape = "ext_shapeHSM_HsmPsfMoments"
Copy link
Member

Choose a reason for hiding this comment

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

I assume you meant for this file to be shared?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's intentionally shared between them. Eventually I think this config will end up in {{characterizeImageConfig.setDefaults}} via DM-34969, but this will do for us for now.

@parejkoj parejkoj merged commit a3f9760 into main May 26, 2022
@parejkoj parejkoj deleted the tickets/DM-34826 branch May 26, 2022 00:08
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.

None yet

2 participants