Skip to content

Account for very small sigmas#234

Merged
ayllon merged 1 commit intodevelopfrom
fix/small_sigma
Mar 23, 2020
Merged

Account for very small sigmas#234
ayllon merged 1 commit intodevelopfrom
fix/small_sigma

Conversation

@ayllon
Copy link
Member

@ayllon ayllon commented Mar 23, 2020

Hi Martin,

It turns out that the error is still there in some cases. For instance, with a cell size of 32 (same image, band i from double Sersic).
It seems to be because sigma is not quite 0, but rather a very very small double greater than 0.
I have changed the checks on sigma > 0 to sigma > epsilon.

Does this make sense?

@ayllon ayllon requested a review from mkuemmel March 23, 2020 12:23
@mkuemmel
Copy link
Collaborator

I am still somewhat surprised that this turns up now, and why SE2 does not have this problem.

Other than that it is fine.

Thanks fro wrapping that up.

@ayllon
Copy link
Member Author

ayllon commented Mar 23, 2020

From what I see in SE2 code, it does not check on the value of npix being 0, but that should propagate a NaN around, so I am not sure how is that avoided.

I merge this in any case.

@ayllon ayllon merged commit 9a1b482 into develop Mar 23, 2020
@ayllon ayllon deleted the fix/small_sigma branch March 23, 2020 13:02
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.

2 participants