Skip to content

Commit

Permalink
Update prior.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasckng committed Jul 4, 2024
1 parent e8e645c commit fba5f79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jimgw/prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def log_prob(self, x: dict[str, Float]) -> Float:
return jnp.log(jnp.exp(-variable) / (1 + jnp.exp(-variable)) ** 2)


@jaxtyped(typechecker=typechecker)
class Sphere(Prior):
"""
A prior on a sphere represented by Cartesian coordinates.
Expand Down Expand Up @@ -395,6 +396,8 @@ def log_prob(self, x: dict[str, Float]) -> Float:
)
return log_p


@jaxtyped(typechecker=typechecker)
class EarthFrame(Prior):
"""
Prior distribution for sky location in Earth frame.
Expand Down

0 comments on commit fba5f79

Please sign in to comment.