Resolve "Conversion function not applied to posterior"
Closes #613 (closed).
Changes
- Change interface for
nessai
andcpnest
so saveresult.samples
instead ofresult.posterior
- Modified the existing integration test for the samplers to check that the conversion function is applied for all of them.
- Add
pytest.importorskip
to all tests insampler_run_test.py
so tests can be run locally without requiring an environment with all of the samplers installed
Merge request reports
Activity
added Sampling label
- Resolved by Michael Williams
Sorry @colm.talbot, I realised that just setting
result.samples
isn't enough, since the log-likelihood evaluations will be set to NaNs in the posterior. So I've just updated the MR to test thatlog_likelihood_evaluations
is set in all the samplers and added a fix to cpnest and nessai.
changed milestone to %1.1.5
mentioned in commit c14012d6