Skip to content

Commit

Permalink
lnprobability -> get_log_prob
Browse files Browse the repository at this point in the history
  • Loading branch information
IainHammond committed Jan 22, 2025
1 parent 238f88c commit 7863b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vip_hci/fm/negfc_mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ def mcmc_negfc_sampling(cube, angs, psfn, initial_state, algo=pca_annulus,
fname = '{d}/{f}_temp_k{k}'.format(d=output_dir,
f=output_file_tmp, k=k)
data = {'chain': sampler.chain,
'lnprob': sampler.lnprobability,
'lnprob': sampler.get_log_prob(),
'AR': sampler.acceptance_fraction}
with open(fname, 'wb') as fileSave:
pickle.dump(data, fileSave)
Expand Down Expand Up @@ -1063,7 +1063,7 @@ def mcmc_negfc_sampling(cube, angs, psfn, initial_state, algo=pca_annulus,
output = {'chain': chain_zero_truncated(chain),
'input_parameters': input_parameters,
'AR': sampler.acceptance_fraction,
'lnprobability': sampler.lnprobability}
'lnprobability': sampler.get_log_prob()}

if output_file is None:
output_file = 'MCMC_results'
Expand Down

0 comments on commit 7863b3f

Please sign in to comment.