Skip to content

Commit

Permalink
transpose bounds if necessary, avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibeauWouters committed Dec 6, 2023
1 parent 282f409 commit ed223ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jimgw/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ def __init__(
self.freq_grid_low = freq_grid[:-1]

print("Finding reference parameters..")

# Check if shape of bounds is correct, otherwise, transpose bounds
if jnp.shape(bounds)[0] != 2:
bounds = bounds.T

self.ref_params = self.maximize_likelihood(
bounds=bounds, prior=prior, popsize=popsize, n_loops=n_loops
Expand Down

0 comments on commit ed223ef

Please sign in to comment.