From d08f8d43a7446be09da5135aa1471836a215347b Mon Sep 17 00:00:00 2001 From: Vincenzo Maffione Date: Sun, 19 Mar 2017 10:27:35 +0100 Subject: model: more compact debug print for DIF graphs --- rumba/model.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rumba/model.py b/rumba/model.py index 45d0473..946d85d 100644 --- a/rumba/model.py +++ b/rumba/model.py @@ -379,10 +379,11 @@ class Experiment: # This is a shim DIF, nothing to do continue - print("DIF graphs for %s" % dif) + er = [] for node in dif_graphs[dif]: for edge in dif_graphs[dif][node]: - print("%s --> %s [%s]" % (node.name, edge[0].name, edge[1])) + er.append("%s --[%s]--> %s" % (node.name, edge[1].name, edge[0].name)) + print("DIF graph for %s: %s" % (dif, ', '.join(er))) self.enrollments[dif] = [] -- cgit v1.2.3