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-26182 Fix zogy score image invalid value warning #164

Merged
merged 1 commit into from Aug 25, 2020
Merged

Conversation

kgabor
Copy link
Member

@kgabor kgabor commented Aug 20, 2020

No description provided.

Copy link
Contributor

@isullivan isullivan left a comment

Choose a reason for hiding this comment

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

Please make the requested changes, and then it is good to go.

flt = np.logical_or(flt, self.fftVarPl2.filtInf)
flt = np.logical_or(flt, self.fftVarPl1.filtNaN)
flt = np.logical_or(flt, self.fftVarPl2.filtNaN)
tiny = np.finfo(varPlaneS.dtype).tiny * 100
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did this change from tiny*10 to tiny*100?

Also, move this line two lines down below the comment that explains it's purpose.

Copy link
Member Author

Choose a reason for hiding this comment

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

In calculateFourierDiffim, I use tiny*100, changed for consistency.

python/lsst/ip/diffim/zogy.py Outdated Show resolved Hide resolved
python/lsst/ip/diffim/zogy.py Show resolved Hide resolved
 * Avoid comparison of non-finite floats with thresholds.
 * Replace score with zero and score variance with one at these pixels irrespectively of mask values.
@kgabor kgabor merged commit e4b5253 into master Aug 25, 2020
@kgabor kgabor deleted the tickets/DM-26182 branch April 3, 2021 23:19
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