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

Add DecorrelateALKernelTask #25

Merged
merged 1 commit into from Jun 29, 2016
Merged

Add DecorrelateALKernelTask #25

merged 1 commit into from Jun 29, 2016

Conversation

djreiss
Copy link
Contributor

@djreiss djreiss commented Jun 23, 2016

move utility functions into task

"computeClippedImageStats")


def computeClippedImageStats(im):
def computeClippedImageStats(im, numSigmaClip=3., numIter=3):
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest removing this function entirely. You only call it in two places in this file, and those two places can use the same statsControl object, so it's very few extra lines of code. Furthermore, in this file you ignore two out of the three statistics that you compute (you apparently only use the variance). I don't feel this is a good function to make public, either.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is also used by the unit test, which is why I made it public -- but I understand your point. I will do what you suggested, and reimplement it in the unit test.

@PaulPrice
Copy link
Contributor

Please be sure to squash the new commits before merging.

move utility functions into task

Updates from code review

Remove scipy convolution option

fix unit test and docstrings
@djreiss djreiss changed the title Add ImageDecorrelationTask Add DecorrelateALKernelTask Jun 29, 2016
@djreiss djreiss merged commit 3c9ee38 into master Jun 29, 2016
@ktlim ktlim deleted the tickets/DM-6628 branch August 25, 2018 06:44
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

4 participants