Commit 1efb006e authored by Alexander Lercher's avatar Alexander Lercher

Extracted loading of values

parent 3aafec64
......@@ -8,11 +8,7 @@ cluster = []
labalvlues = []
def classify():
with open("mult_in_out_large.json", "r") as json_file:
df_nodes = json.load(json_file)
df_nodes = load_values()
for row in df_nodes:
......@@ -135,3 +131,9 @@ def classify():
destclusterlabel.append(destIds[row][row2])
print("destination labels (destination Ids): ", destclusterlabel)
def load_values():
with open("mult_in_out_large.json", "r") as json_file:
df_nodes = json.load(json_file)
return df_nodes
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment