Skip to content

Commit

Permalink
Merge pull request #158 from joezuntz/fisher-robust
Browse files Browse the repository at this point in the history
Fix fisher output
  • Loading branch information
joezuntz authored Dec 10, 2024
2 parents afe98b3 + c0d51a4 commit 7a04914
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cosmosis/samplers/fisher/fisher_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7a04914

Please sign in to comment.