From 667f76fe94ed2181629bd40a04f8c1346faf9dbb Mon Sep 17 00:00:00 2001 From: Moritz Huebner <email@moritz-huebner.de> Date: Wed, 13 Jun 2018 16:48:01 +1000 Subject: [PATCH] Removed some redundant __repr__methods --- tupak/core/prior.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tupak/core/prior.py b/tupak/core/prior.py index 79eb1336b..a014774aa 100644 --- a/tupak/core/prior.py +++ b/tupak/core/prior.py @@ -630,10 +630,6 @@ class Uniform(Prior): return scipy.stats.uniform.pdf(val, loc=self.minimum, scale=self.maximum-self.minimum) - def __repr__(self): - """Call to helper method in the super class.""" - return Prior._subclass_repr_helper(self) - class LogUniform(PowerLaw): @@ -697,10 +693,6 @@ class Cosine(Prior): in_prior = (val >= self.minimum) & (val <= self.maximum) return np.cos(val) / 2 * in_prior - def __repr__(self): - """Call to helper method in the super class.""" - return Prior._subclass_repr_helper(self) - class Sine(Prior): @@ -743,10 +735,6 @@ class Sine(Prior): in_prior = (val >= self.minimum) & (val <= self.maximum) return np.sin(val) / 2 * in_prior - def __repr__(self): - """Call to helper method in the super class.""" - return Prior._subclass_repr_helper(self) - class Gaussian(Prior): def __init__(self, mu, sigma, name=None, latex_label=None): -- GitLab