Skip to content

Commit

Permalink
Adding spaces should make this more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
HannoSpreeuw committed Oct 7, 2024
1 parent a18820f commit caa1d01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sourcefinder/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# CODE & NUMBER HANDLING ROUTINES
#
def find_true_std(sigma, clip_limit, clipped_std):
help1 = clip_limit/(sigma*numpy.sqrt(2))
help2 = numpy.sqrt(2*numpy.pi)*erf(help1)
return sigma**2*(help2-2*numpy.sqrt(2)*help1*numpy.exp(-help1**2))-clipped_std**2*help2
help1 = clip_limit / (sigma * numpy.sqrt(2))
help2 = numpy.sqrt(2 * numpy.pi) * erf(help1)
return (sigma ** 2 * (help2 - 2 * numpy.sqrt(2) * help1 *
numpy.exp(-help1 ** 2)) - clipped_std ** 2 * help2)


def indep_pixels(n, correlation_lengths):
Expand Down

0 comments on commit caa1d01

Please sign in to comment.