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-26067: Fix bug in ptc.py that calls np.isnan on array (after DM-25984) #45

Merged
merged 3 commits into from Jul 23, 2020

Conversation

plazas
Copy link
Contributor

@plazas plazas commented Jul 22, 2020

No description provided.

@plazas plazas requested a review from czwa July 22, 2020 21:25
Copy link
Contributor

@czwa czwa left a comment

Choose a reason for hiding this comment

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

Probably just me being pedantic.

@@ -411,7 +411,7 @@ def runDataRef(self, dataRef, visitPairs):
doRealSpace = self.config.covAstierRealSpace
muDiff, varDiff, covAstier = self.measureMeanVarCov(exp1, exp2, region=amp.getBBox(),
covAstierRealSpace=doRealSpace)
if np.isnan(muDiff) or np.isnan(varDiff) or np.isnan(covAstier):
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not care if the covariance is populated? If this catches a failure, can we return None instead of the matrix, so we can check that case?

@plazas plazas merged commit 20dd8cc into master Jul 23, 2020
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