Skip to content
Snippets Groups Projects
Commit c1b23cd1 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Repeat changes of 6b35c755

Not sure how this got undone, but this just repeats the same step of
setting the fixed_parameter properly
parent 505b0ad3
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -468,7 +468,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir', ...@@ -468,7 +468,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir',
result.injection_parameters = injection_parameters result.injection_parameters = injection_parameters
if conversion_function is not None: if conversion_function is not None:
conversion_function(result.injection_parameters) conversion_function(result.injection_parameters)
result.fixed_parameter_keys = [key for key in priors if isinstance(key, prior.DeltaFunction)] result.fixed_parameter_keys = sampler.fixed_parameter_keys
# result.prior = prior # Removed as this breaks the saving of the data # result.prior = prior # Removed as this breaks the saving of the data
result.samples_to_data_frame(likelihood=likelihood, priors=priors, conversion_function=conversion_function) result.samples_to_data_frame(likelihood=likelihood, priors=priors, conversion_function=conversion_function)
result.kwargs = sampler.kwargs result.kwargs = sampler.kwargs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment