Skip to content

Commit

Permalink
Added bug fix suggested by @johannesulf in Issue astropy#900
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hearin committed Apr 24, 2018
1 parent 7a37ad8 commit e4915c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def _sign_pbc(x1, x2, period=None, equality_fill_val=0., return_pbc_correction=F
try:
assert np.all(x1 >= 0)
assert np.all(x2 >= 0)
assert np.all(x1 < period)
assert np.all(x2 < period)
assert np.all(x1 <= period)
assert np.all(x2 <= period)
except AssertionError:
msg = "If period is not None, all values of x and y must be between [0, period)"
raise ValueError(msg)
Expand Down

0 comments on commit e4915c2

Please sign in to comment.