From a5fe83851422517dc7b558cce17bccd5106763d9 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Wed, 9 Mar 2016 06:22:26 +0100 Subject: [PATCH] added a str representation for the pdf class --- pylot/core/util/pdf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylot/core/util/pdf.py b/pylot/core/util/pdf.py index dbcffc74..0aad8ad7 100644 --- a/pylot/core/util/pdf.py +++ b/pylot/core/util/pdf.py @@ -153,6 +153,9 @@ class ProbabilityDensityFunction(object): def __nonzero__(self): return bool(np.round(self.prob_gt_val(self.axis[0]), 4) == 1.) + def __str__(self): + return str(self.data) + @property def data(self): return self._pdf