From cc8aa3c177f3c85b47cd659d7957e8aa000ed56b Mon Sep 17 00:00:00 2001 From: Azza Ahmed Date: Thu, 27 Jun 2019 18:21:47 +0200 Subject: [PATCH] deprecated Sci-pi function --- netstruct.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/netstruct.py b/netstruct.py index 5bb8e35..7c75fe1 100755 --- a/netstruct.py +++ b/netstruct.py @@ -164,7 +164,10 @@ def FindCommunities(fname,threshold=0.0,algorithm_num=6): 6 : leading.eigenvector.community -> returns VertexClustering object. """ area,ind,GDmatrix=loadGDmatrix(fname) - matx=stats.threshold(GDmatrix, threshmin=threshold,newval=0) # Creates an adjacency matrix with a threshold applied to GDmatrix (i.e. all values below the threshold are taken to be 0) + # matx=stats.threshold(GDmatrix, threshmin=threshold,newval=0) # Creates an adjacency matrix with a threshold applied to GDmatrix (i.e. all values below the threshold are taken to be 0) + matx = GDmatrix + matx[matx