修訂 | 8e109aa327bf8f6c67138bb0334d9710cfeec326 (tree) |
---|---|
時間 | 2011-03-11 22:27:46 |
作者 | lorenzo |
Commiter | lorenzo |
Minor modifications to these codes.
@@ -7,8 +7,8 @@ | ||
7 | 7 | |
8 | 8 | import sys |
9 | 9 | |
10 | -kf=1.3 | |
11 | -df= 2.3 # 1.8 | |
10 | +kf=1. | |
11 | +df= 1.78 # 1.8 | |
12 | 12 | |
13 | 13 | print sys.argv |
14 | 14 |
@@ -7,7 +7,7 @@ | ||
7 | 7 | |
8 | 8 | import sys |
9 | 9 | |
10 | -kf=1.3 | |
10 | +kf=1. | |
11 | 11 | df= 1.78 # 1.8 |
12 | 12 | |
13 | 13 | print sys.argv |
@@ -115,8 +115,8 @@ | ||
115 | 115 | n.savetxt("distance_distribution.dat", s.ravel(dist_mat)) |
116 | 116 | |
117 | 117 | |
118 | - | |
119 | -print "s.shape(dist_mat) is, ", s.shape(dist_mat) | |
118 | +my_dim=s.shape(dist_mat) | |
119 | +print "s.shape(dist_mat) is, ", my_dim | |
120 | 120 | |
121 | 121 | threshold=2.1 |
122 | 122 |
@@ -127,11 +127,14 @@ | ||
127 | 127 | |
128 | 128 | k=s.sum(adjacency, axis=1)-1 |
129 | 129 | |
130 | +n.savetxt("degree_list.dat", k) | |
131 | + | |
132 | + | |
130 | 133 | print "k is, ", k |
131 | 134 | |
132 | -x=final_cluster[:,0] | |
133 | -y=final_cluster[:,1] | |
134 | -z=final_cluster[:,2] | |
135 | +# x=final_cluster[:,0] | |
136 | +# y=final_cluster[:,1] | |
137 | +# z=final_cluster[:,2] | |
135 | 138 | |
136 | 139 | |
137 | 140 | # mlab.clf() |
@@ -166,7 +169,7 @@ | ||
166 | 169 | print "R1agg is, ", R1_agg |
167 | 170 | |
168 | 171 | |
169 | -N_tot=len(x) | |
172 | +N_tot=my_dim[1] | |
170 | 173 | |
171 | 174 | print "the total number of monomers is, ", N_tot |
172 | 175 |