Skip to content
Snippets Groups Projects
Commit 0c57fc3b authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Merge branch 'calibration_prior_set_bug_fix' into 'master'

Fixed a bug in CalibrationPriorDict

See merge request !261
parents e42c0179 b2359ee7
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,7 @@ class CalibrationPriorDict(PriorDict):
PriorDict.__init__(self, dictionary=dictionary, filename=filename)
self.source = None
def write_to_file(self, outdir, label):
def to_file(self, outdir, label):
"""
Write the prior to file. This includes information about the source if
possible.
......@@ -249,7 +249,7 @@ class CalibrationPriorDict(PriorDict):
label: str
Label for prior.
"""
PriorDict.write_to_file(self, outdir=outdir, label=label)
PriorDict.to_file(self, outdir=outdir, label=label)
if self.source is not None:
prior_file = os.path.join(outdir, "{}.prior".format(label))
with open(prior_file, "a") as outfile:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment