bd-j / prospector

Python code for Stellar Population Inference from Spectra and SEDs
http://prospect.readthedocs.io
MIT License
157 stars 73 forks source link

interactive demo. nested sampling via dynesty. #268

Closed YourVoicee closed 1 year ago

YourVoicee commented 1 year ago

Hello! I was trying to figure out the interactive demo and plugged in the photometric values of another galaxy. And when i use nested sampling via dynesty:

output = fit_model(obs, model, sps, lnprobfn=lnprobfn, **run_params)
print('done dynesty in {0}s'.format(output["sampling"][1]))

i get error:

File ~/anaconda3/envs/prospector/lib/python3.8/site-packages/prospect/fitting/nested.py:68, in run_dynesty_sampler(lnprobfn, prior_transform, ndim, verbose, nested_bound, nested_sample, nested_nlive_init, nested_nlive_batch, nested_update_interval, nested_walks, nested_maxcall, nested_maxiter_init, pool, queue_size, nested_use_stop, nested_maxbatch, nested_weight_kwargs, nested_bootstrap, nested_dlogz_init, use_pool, nested_first_update, nested_maxcall_init, nested_live_points, nested_maxcall_batch, nested_maxiter, stop_function, wt_function, nested_maxiter_batch, nested_stop_kwargs, nested_save_bounds, **kwargs)

too many values to unpack (expected 15)

Please, tell me what it can be connected with and what I'm doing wrong. run_params for dynesty I didn't change

bd-j commented 1 year ago

Could you let me know the versions of dynesty and prospector you are using? Thanks.

YourVoicee commented 1 year ago

prospect: 1.1.0 dynesty: 2.0.1

bd-j commented 1 year ago

please try upgrading to prospect v1.2.0

bd-j commented 1 year ago

assuming this is resolved, please reopen if you are still encountering issues.

YourVoicee commented 1 year ago

Updating the version has helped. Thanks for the response!