diff --git a/bct/algorithms/modularity.py b/bct/algorithms/modularity.py index 3ac6b4d..6e748a8 100644 --- a/bct/algorithms/modularity.py +++ b/bct/algorithms/modularity.py @@ -371,7 +371,7 @@ def link_communities(W, type_clustering='single'): dc = (mc - min_mc) / (nc * (nc - 1) / 2 - min_mc) # community density - if np.array(dc).shape is not (): + if np.array(dc).shape != (): print(dc) print(dc.shape)