Skip to content

Commit

Permalink
Merge pull request #74 from zipengwang98/prior_fix
Browse files Browse the repository at this point in the history
Update prior.py
  • Loading branch information
kazewong authored Mar 11, 2024
2 parents 031920d + 4ab1b63 commit 1589dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jimgw/prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ def log_prob(self, x: dict[str, Float]) -> Float:
| (mag < 0)
| (phi > 2 * jnp.pi)
| (phi < 0)
| (theta > 1)
| (theta < -1),
| (theta > jnp.pi)
| (theta < 0),
jnp.zeros_like(0) - jnp.inf,
jnp.log(mag**2 * jnp.sin(x[self.naming[0]])),
)
Expand Down

0 comments on commit 1589dbb

Please sign in to comment.