Skip to content
Snippets Groups Projects
Commit 2ba65a6f authored by leoborn's avatar leoborn
Browse files
parents 902e7915 82b9c9fc
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ def build_graph(years=[],include_utterances=False,subcat=False): ...@@ -70,7 +70,7 @@ def build_graph(years=[],include_utterances=False,subcat=False):
vs = [dh.VerdictNode(v,"verdict",subcat=maybe_subcat("verdict"),dummy=False) for v in vs] vs = [dh.VerdictNode(v,"verdict",subcat=maybe_subcat("verdict"),dummy=False) for v in vs]
if not vs: if not vs:
logging.warning("warning no verdict found inserting dummy") logging.warning("warning no verdict found inserting dummy")
vn=dh.VerdictNode({},"",subcat=maybe_subcat("dummy"),dummy=True,text=False) vn=dh.VerdictNode({},"",subcat=False,dummy=True)
nodeindex,vindex = gh.maybe_new_index(vn,node_index_dict) nodeindex,vindex = gh.maybe_new_index(vn,node_index_dict)
G.add_node(vindex, label="Verdict", nodeobj=vn) G.add_node(vindex, label="Verdict", nodeobj=vn)
G.add_edge(trialindex,vindex,edge_class="with-verdict") G.add_edge(trialindex,vindex,edge_class="with-verdict")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment