@@ -299,7 +299,6 @@ def compute_network_measures(ntwk):
299
299
300
300
301
301
def add_node_data (node_array , ntwk ):
302
- ntwk = read_unknown_ntwk (ntwk )
303
302
node_ntwk = nx .Graph ()
304
303
newdata = {}
305
304
for idx , data in ntwk .nodes_iter (data = True ):
@@ -311,7 +310,6 @@ def add_node_data(node_array, ntwk):
311
310
312
311
313
312
def add_edge_data (edge_array , ntwk , above = 0 , below = 0 ):
314
- ntwk = read_unknown_ntwk (ntwk )
315
313
edge_ntwk = ntwk .copy ()
316
314
data = {}
317
315
for x , row in enumerate (edge_array ):
@@ -395,7 +393,7 @@ def _run_interface(self, runtime):
395
393
396
394
node_measures = compute_node_measures (ntwk , calculate_cliques )
397
395
for key in node_measures .keys ():
398
- newntwk = add_node_data (node_measures [key ], self . inputs . in_file )
396
+ newntwk = add_node_data (node_measures [key ], ntwk )
399
397
out_file = op .abspath (self ._gen_outfilename (key , 'pck' ))
400
398
nx .write_gpickle (newntwk , out_file )
401
399
nodentwks .append (out_file )
@@ -409,7 +407,7 @@ def _run_interface(self, runtime):
409
407
410
408
edge_measures = compute_edge_measures (ntwk )
411
409
for key in edge_measures .keys ():
412
- newntwk = add_edge_data (edge_measures [key ], self . inputs . in_file )
410
+ newntwk = add_edge_data (edge_measures [key ], ntwk )
413
411
out_file = op .abspath (self ._gen_outfilename (key , 'pck' ))
414
412
nx .write_gpickle (newntwk , out_file )
415
413
edgentwks .append (out_file )
0 commit comments