Skip to content

Commit

Permalink
Black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kazewong committed Nov 27, 2023
1 parent e1ba101 commit d011aca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion example/GW150914.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@
sin_dec_prior,
]
)
likelihood = TransientLikelihoodFD([H1, L1], waveform=RippleIMRPhenomD(), trigger_time=gps, duration=4, post_trigger_duration=2)
likelihood = TransientLikelihoodFD(
[H1, L1],
waveform=RippleIMRPhenomD(),
trigger_time=gps,
duration=4,
post_trigger_duration=2,
)


mass_matrix = jnp.eye(11)
Expand Down
2 changes: 1 addition & 1 deletion src/jimgw/prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def sample(self, rng_key: jax.random.PRNGKey, n_samples: int) -> dict:

def log_prob(self, x: dict) -> Float:
variable = x[self.naming[0]]
return jnp.log(jnp.exp(-variable)/(1 + jnp.exp(-variable))**2)
return jnp.log(jnp.exp(-variable) / (1 + jnp.exp(-variable)) ** 2)


class Sphere(Prior):
Expand Down
2 changes: 1 addition & 1 deletion test/test_prior.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from jimgw.prior import Uniform, UUniform, Composite
from jimgw.prior import Uniform, Unconstrained_Uniform, Composite

0 comments on commit d011aca

Please sign in to comment.