From 9db52cb43f16a1949306ee483121a2ec2aebd3bd Mon Sep 17 00:00:00 2001 From: Matthew Pitkin <matthew.pitkin@ligo.org> Date: Tue, 2 Apr 2019 14:17:36 +0100 Subject: [PATCH] Add str and repr methods to ResultList --- bilby/core/result.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bilby/core/result.py b/bilby/core/result.py index ff4649890..81d345455 100644 --- a/bilby/core/result.py +++ b/bilby/core/result.py @@ -1349,6 +1349,12 @@ class ResultList(object): return result + def __str__(self): + return str(self.results) + + def __repr__(self): + return repr(self.results) + def plot_multiple(results, filename=None, labels=None, colours=None, save=True, evidences=False, **kwargs): -- GitLab