Skip to content
Snippets Groups Projects
Commit b2359ee7 authored by moritz.huebner's avatar moritz.huebner
Browse files

Fixed a bug in CalibrationPriorDict

parent 1a30711b
No related branches found
No related tags found
1 merge request!261Fixed a bug in CalibrationPriorDict
Pipeline #36858 passed
......@@ -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