From 86ad091729b3908f8ad4e5331a290e132e6f7e4b Mon Sep 17 00:00:00 2001 From: Zoher Kachwala Date: Thu, 15 Jun 2023 14:36:40 -0400 Subject: [PATCH] Update mbse.py if the variable graph.top has attributes, the previous line was overwriting its list of attributes with a single one: ('top,'TOP'). This change appends the attribute instead. Not sure if it helps, since get_triples() is not called by the pipeline.... --- scripts/mbse.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/mbse.py b/scripts/mbse.py index eefea57c..b6f68140 100644 --- a/scripts/mbse.py +++ b/scripts/mbse.py @@ -142,10 +142,10 @@ def get_triples(graph): # sanity check assert nname is not None triples['attributes'][nid].append((role, normalize(nname))) - - triples['attributes'] = dict(triples['attributes']) + # include root - triples['attributes'][graph.top] = [('top', 'TOP')] + triples['attributes'][graph.top].append(('top', 'TOP')) + triples['attributes'] = dict(triples['attributes']) # edges for src, role, trg in graph.edges():