Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: set radius to NaN when using flow or Gaussian latent prior
Browse files Browse the repository at this point in the history
mj-will committed Jan 17, 2025
1 parent 1a0bc57 commit 3a58af7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nessai/proposal/flowproposal/flowproposal.py
Original file line number Diff line number Diff line change
@@ -438,7 +438,11 @@ def populate(
min_log_q = None

logger.debug(f"Populating proposal with latent radius: {r:.5}")
self.r = r
# Radius is not used for the flow or Gaussian latent priors
if self.latent_prior in ["flow", "gaussian"]:
self.r = np.nan
else:
self.r = r

self.alt_dist = self.get_alt_distribution()

0 comments on commit 3a58af7

Please sign in to comment.