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

Fix dipoleFitting to use correct matched template exposure #67

Merged
merged 1 commit into from Jul 26, 2016

Conversation

djreiss
Copy link
Contributor

@djreiss djreiss commented Jul 21, 2016

Fix mixup of var1 and var2 for science and template

Fix mixup of var1 and var2 for science and template
@@ -561,7 +561,11 @@ def run(self, sensorRef, templateIdList=None):
if not self.config.doDipoleFitting:
self.measurement.run(diaSources, subtractedExposure)
else:
self.measurement.run(diaSources, subtractedExposure, exposure, templateExposure)
if self.config.doSubtract:
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not clear on why "doSubtract" means we pass the matchedExposure here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If doSubract == True then we have a matchedExposure and we can use that rather than computing it from exposure - subtractedExposure. This is noted in the DipoleFitTask.run() docstring.

@parejkoj
Copy link
Contributor

Just the one question. This seems straightforward otherwise.

@djreiss djreiss merged commit 221e009 into master Jul 26, 2016
@ktlim ktlim deleted the tickets/DM-6580 branch August 25, 2018 06:46
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