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-47535: Add unit test for reprocessVisitImage and enable useCiLimits on its deblending. #44

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

TallJimbo
Copy link
Member

No description provided.

Copy link
Contributor

@parejkoj parejkoj left a comment

Choose a reason for hiding this comment

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

Question about the useCiLimits line.

@@ -92,6 +92,7 @@ def run(self, currentState: BuildState):
"--skip-existing",
"--save-qgraph", os.path.join(self.runner.RunDir, QGRAPH_FILE),
"--config", f"calibrate:deblend.useCiLimits={not self.arguments.no_limit_deblend}",
"--config", f"reprocessVisitImage:deblend.useCiLimits={not self.arguments.no_limit_deblend}",
Copy link
Contributor

@parejkoj parejkoj Nov 26, 2024

Choose a reason for hiding this comment

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

Do we really need this? I removed the calibrate line above, and I'm not sure it's really necessary here. Maybe it is necessary for reprocessVisitImage?

EDIT: oh, I see I did add it for reprocessVisitImage on #43 . I'm still not sure it's really necessary, but I guess it's not worth quibbling over.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I'm not sure how much faster it makes ci_imsim, but I assume it was added for a good reason initially and I imagine that reasoning would apply to reprocessVisitImage as well.

self.exposure = self.butler.get("pvi", self.dataId)
self.catalog = self.butler.get("sources_footprints_detector", self.dataId)

def testLocalPhotoCalibColumns(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

I do hope that we can remove LocalPhotoCalib from the catalogs in the future, since they'll have calibrated values. Not sure if that's ticketed?

Copy link
Member Author

Choose a reason for hiding this comment

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

The transform*Table catalog implementations are pandas-heavy and one of the bits of the stack I'm least familiar with, and that makes me really not want to wade in to them as long as they're working. So if we ever do fix this, I think it'll be because we decide to do a full rewrite of that stuff, and that won't benefit much from a more targeted ticket.

TallJimbo and others added 2 commits November 27, 2024 10:47
Previously, no_limit_deblend gave us the option to turn off
useCiLimits for CalibrateTask. reprocessVisitImage is the new
calibrate with useCiLimits=True in the ci_imsim pipeline
by default
@TallJimbo TallJimbo merged commit e9dd958 into main Dec 4, 2024
3 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-47535 branch December 4, 2024 14:41
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.

3 participants