Skip to content

Commit

Permalink
Making the check on sigma for FisherSky class more relax (allowing 0 …
Browse files Browse the repository at this point in the history
…value) (#4994)

* Making the check on sigma for FisherSky class more relax (allowing 0
value)

* Changing the error message for sigma check

---------

Co-authored-by: jacquot <jacquot@>
  • Loading branch information
Thomas-JACQUOT authored Dec 18, 2024
1 parent 0470733 commit 91994c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycbc/distributions/sky_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def __init__(self, **params):
'The mean declination must be between '
f'-π/2 and π/2, {mean_dec} rad given'
)
if sigma <= 0 or sigma > 2 * numpy.pi:
if sigma < 0 or sigma > 2 * numpy.pi:
raise ValueError(
'Sigma must be positive and smaller than 2π '
'Sigma must be non-negative and smaller than 2π '
'(preferably much smaller)'
)
if sigma > 0.35:
Expand Down

0 comments on commit 91994c8

Please sign in to comment.