@@ -848,28 +848,29 @@ def plot_partition(g,part,title,fname='figure',nod_labels = None, pos = None,
848
848
if within_mod == 'none' : #note: assumes part_coeff also there
849
849
for v in val :
850
850
if les_dam != 'none' :
851
- plt .scatter (pos [v ][0 ],pos [v ][1 ],s = 100 * les_dam [v ],c = 'orange' ,marker = (4 ,1 ,0 ))
852
- nx .draw_networkx_nodes (g ,pos ,nodelist = list (val ),node_color = col [niter ],node_size = 50 )
851
+ plt .scatter (pos [v ][0 ],pos [v ][1 ],s = 100 * les_dam [v ],c = 'orange' ,marker = (10 ,1 ,0 ))
852
+ nx .draw_networkx_nodes (g ,pos ,nodelist = list (val ),node_color = col [niter ],node_size = 50 )
853
853
else :
854
854
for v in val :
855
855
if les_dam != 'none' :
856
- plt .scatter (pos [v ][0 ],pos [v ][1 ],s = 500 * les_dam [v ],c = 'orange' ,marker = (4 ,1 ,0 ))
857
-
856
+ plt .scatter (pos [v ][0 ],pos [v ][1 ],s = 500 * les_dam [v ],c = 'orange' ,marker = (10 ,1 ,0 ))
857
+
858
858
if within_mod [v ] > 1 :
859
859
nx .draw_networkx_nodes (g ,pos ,nodelist = [v ],node_color = col [niter ],node_size = part_coeff [v ] * 500 + 50 ,node_shape = 's' ,linewidths = 2 )
860
860
else :
861
861
nx .draw_networkx_nodes (g ,pos ,nodelist = [v ],node_color = col [niter ],node_size = part_coeff [v ] * 500 + 50 ,node_shape = 'o' ,linewidths = 0.5 )
862
+
862
863
else :
863
864
#print 'out of colors!!'
864
865
if within_mod == 'none' : #note: assumes part_coeff also there
865
866
for v in val :
866
867
if les_dam != 'none' :
867
- plt .scatter (pos [v ][0 ],pos [v ][1 ],s = 100 * les_dam [v ],c = 'orange' ,marker = (4 ,1 ,0 ))
868
+ plt .scatter (pos [v ][0 ],pos [v ][1 ],s = 100 * les_dam [v ],c = 'orange' ,marker = (10 ,1 ,0 ))
868
869
nx .draw_networkx_nodes (g ,pos ,nodelist = list (val ),node_color = col2 [niter ],node_size = 50 )
869
870
else :
870
871
for v in val :
871
872
if les_dam != 'none' :
872
- plt .scatter (pos [v ][0 ],pos [v ][1 ],s = 500 * les_dam [v ],c = 'orange' ,marker = (4 ,1 ,0 ))
873
+ plt .scatter (pos [v ][0 ],pos [v ][1 ],s = 500 * les_dam [v ],c = 'orange' ,marker = (10 ,1 ,0 ))
873
874
874
875
if within_mod [v ] > 1 :
875
876
nx .draw_networkx_nodes (g ,pos ,nodelist = [v ],node_color = col2 [niter ],node_size = part_coeff [v ] * 500 + 50 ,node_shape = 's' ,linewidths = 2 )
@@ -980,10 +981,10 @@ def mutual_information(d1, d2):
980
981
# empty module in one of the input partitions. Rather than manually check
981
982
# the entire partitions, we look for this problem at this stage, and bail
982
983
# if there was an empty module.
983
- if (nsum_row == 0 ).any ():
984
- raise ValueError ("Empty module in second partition." )
985
- if (nsum_col == 0 ).any ():
986
- raise ValueError ("Empty module in first partition." )
984
+ ## if (nsum_row==0).any():
985
+ ## raise ValueError("Empty module in second partition.")
986
+ ## if (nsum_col==0).any():
987
+ ## raise ValueError("Empty module in first partition.")
987
988
988
989
# nn is the total number of nodes
989
990
nn = nsum_row .sum ()
0 commit comments