Skip to content

Commit

Permalink
Merge pull request #95 from dessn/biascor
Browse files Browse the repository at this point in the history
Don't fail if simfile/varname not defined
  • Loading branch information
OmegaLambda1998 authored Jul 1, 2022
2 parents f343dc5 + 67e25ff commit d3b6241
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pippin/biascor.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,12 @@ def write_input(self):
self.yaml["FITOPT_MAP"], fitopt_index = self.get_fitopt_map(self.merged_data)
self.output["fitopt_index"] = fitopt_index

self.set_property("simfile_biascor", self.bias_cor_fits)
self.set_property("simfile_ccprior", self.cc_prior_fits)
self.set_property("varname_pIa", self.probability_column_name)
if self.bias_cor_fits is not None:
self.set_property("simfile_biascor", self.bias_cor_fits)
if self.cc_prior_fits is not None:
self.set_property("simfile_ccprior", self.cc_prior_fits)
if self.probability_column_name is not None:
self.set_property("varname_pIa", self.probability_column_name)

self.yaml["CONFIG"]["OUTDIR"] = self.fit_output_dir

Expand Down

0 comments on commit d3b6241

Please sign in to comment.