Skip to content

Commit

Permalink
Don't fail if simfile/varname not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaLambda1998 committed May 16, 2022
1 parent 1135d0f commit 67e25ff
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 @@ -282,9 +282,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 67e25ff

Please sign in to comment.