aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2017-03-19 10:27:35 +0100
committerVincenzo Maffione <v.maffione@gmail.com>2017-03-19 10:27:35 +0100
commitd08f8d43a7446be09da5135aa1471836a215347b (patch)
tree00c676857704b71164ba1fda4343e4e375e7429f
parent23b46068be8b698c55ab854eb5c2de2a3a14d453 (diff)
downloadrumba-d08f8d43a7446be09da5135aa1471836a215347b.tar.gz
rumba-d08f8d43a7446be09da5135aa1471836a215347b.zip
model: more compact debug print for DIF graphs
-rw-r--r--rumba/model.py5
1 files 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] = []