diff --git a/bilby/gw/prior.py b/bilby/gw/prior.py index 2a1cff07c7868169b89e8f84d30beea5d52f27b3..46f62708c94e5b57488943e6bdfe37a418df52a0 100644 --- a/bilby/gw/prior.py +++ b/bilby/gw/prior.py @@ -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: