From c1b23cd1fa25fb5e08887c474635a96c4259aa5b Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Sun, 20 May 2018 16:19:53 +1000 Subject: [PATCH] Repeat changes of 6b35c755 Not sure how this got undone, but this just repeats the same step of setting the fixed_parameter properly --- tupak/sampler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tupak/sampler.py b/tupak/sampler.py index 80f87338f..40fd52d29 100644 --- a/tupak/sampler.py +++ b/tupak/sampler.py @@ -468,7 +468,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir', result.injection_parameters = injection_parameters if conversion_function is not None: 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.samples_to_data_frame(likelihood=likelihood, priors=priors, conversion_function=conversion_function) result.kwargs = sampler.kwargs -- GitLab