From 733e32e10e4d927b9c62775cca73eb5d443207d3 Mon Sep 17 00:00:00 2001
From: zimmermann <zimmermann@cl.uni-heidelberg.de>
Date: Thu, 22 Mar 2018 18:03:24 +0100
Subject: [PATCH] bugfix

---
 src/absinth.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/absinth.py b/src/absinth.py
index f682c70..cc11a35 100644
--- a/src/absinth.py
+++ b/src/absinth.py
@@ -143,7 +143,7 @@ def induce(topic_name: str, result_list: list) -> (nx.Graph, list, dict):
 
             graph_in_existence = True
 
-            with open(node_dict_name, 'r') as node_file, open(edge_dict_name, 'r') as edge_file:
+            with open(config.graph+node_dict_name, 'r') as node_file, open(config.graph+edge_dict_name, 'r') as edge_file:
         
                 node_freq_dict = json.load(node_file)
                 edge_freq_dict = json.load(edge_file)
@@ -154,7 +154,7 @@ def induce(topic_name: str, result_list: list) -> (nx.Graph, list, dict):
 
         node_freq_dict, edge_freq_dict = frequencies(target_string, result_list)
         
-        with open(node_dict_name, 'w') as node_file, open(edge_dict_name, 'w') as edge_file:
+        with open(config.graph+node_dict_name, 'w') as node_file, open(config.graph+edge_dict_name, 'w') as edge_file:
             node_file.write(json.dumps(node_freq_dict))
             edge_file.write(json.dumps(edge_freq_dict))
 
-- 
GitLab