From 94b7e81968d037925effb86fc47f4e12bd88e48c Mon Sep 17 00:00:00 2001 From: Joe Zuntz Date: Tue, 10 Dec 2024 14:50:20 +0000 Subject: [PATCH] make fisher report better --- cosmosis/samplers/fisher/fisher_sampler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cosmosis/samplers/fisher/fisher_sampler.py b/cosmosis/samplers/fisher/fisher_sampler.py index e772db0f..ec577e34 100755 --- a/cosmosis/samplers/fisher/fisher_sampler.py +++ b/cosmosis/samplers/fisher/fisher_sampler.py @@ -16,7 +16,8 @@ def compute_fisher_vector(p, cov=False): return None #Run the pipeline, generating a data block - data = fisherPipeline.run_parameters(x) + result = fisherPipeline.run_results(x) + data = result.block #If the pipeline failed, return "None" #This might happen if the parameters stray into @@ -136,7 +137,7 @@ def execute(self): self.step_size_min, self.step_size_max, self.step_count, pool=self.pool) else: - raise ValueError("Unknown Fisher matrix method {self.method}") + raise ValueError(f"Unknown Fisher matrix method {self.method}") try: fisher_matrix = fisher_calc.compute_fisher_matrix()