Skip to content

Commit

Permalink
For jointprior rescale, only cast to list once its save to loose muta…
Browse files Browse the repository at this point in the history
…bility
  • Loading branch information
JasperMartins committed Nov 25, 2024
1 parent 5ce0bbe commit 4e1a3d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bilby/core/prior/dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,10 @@ def rescale(self, keys, theta):
samples = []
for key, units in zip(keys, theta):
samps = self[key].rescale(units)
samples.append(samps)
for i, samps in enumerate(samples):
# turns 0d-arrays into scalars
samples.append(np.squeeze(samps).tolist())
samples[i] = np.squeeze(samps).tolist()
return samples

def test_redundancy(self, key, disable_logging=False):
Expand Down

0 comments on commit 4e1a3d2

Please sign in to comment.