diff --git a/prospect/fitting/nested.py b/prospect/fitting/nested.py index 88c78ca2..c8aaabc6 100644 --- a/prospect/fitting/nested.py +++ b/prospect/fitting/nested.py @@ -104,8 +104,8 @@ def run_nested_sampler(model, **{key: kwargs[key] for key in sig.kwargs.keys() & kwargs.keys()}, **run_kwargs} run_return = sampler_run(*run_args, **run_kwargs) - for key in kwargs.keys() - (init_kwargs.keys() | run_kwargs.keys()): - warnings.warn(f"Key '{key}' not recognized by the sampler.") + #for key in kwargs.keys() - (init_kwargs.keys() | run_kwargs.keys()): + # warnings.warn(f"Key '{key}' not recognized by the sampler.") if nested_sampler == 'nautilus': obj = sampler diff --git a/tests/tests_samplers.py b/tests/tests_samplers.py index 8c47d85f..3c231071 100644 --- a/tests/tests_samplers.py +++ b/tests/tests_samplers.py @@ -11,7 +11,6 @@ from prospect.models import SpecModel, templates from prospect.observation import Photometry from prospect.fitting import fit_model -from prospect.fitting.nested import parse_nested_kwargs from prospect.io.write_results import write_hdf5 from prospect.io.read_results import results_from @@ -69,12 +68,6 @@ def build_obs(**kwargs): run_params = vars(args) run_params["param_file"] = __file__ - # test the parsing - run_params["nested_sampler"] = "dynesty" - nr, ns = parse_nested_kwargs(**run_params) - print(nr) - print(ns) - # build stuff model = build_model() obs = build_obs() @@ -120,4 +113,5 @@ def build_obs(**kwargs): axes, color=color, weights= np.exp(out["log_weight"]), - show_titles=True) \ No newline at end of file + show_titles=True) + cfig.savefig("sampler_test_corner.png") \ No newline at end of file