Skip to content

Commit

Permalink
Merge pull request #901 from aphearin/pbc_edge_bugfix
Browse files Browse the repository at this point in the history
Added support for `x==Lbox` points for SubhaloPhaseSpace model
  • Loading branch information
aphearin authored Apr 27, 2018
2 parents 7a37ad8 + e4915c2 commit 85ab083
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 85ab083

Please sign in to comment.