• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision323ab84bc8b3e944b3a6887298843e805a5063e0 (tree)
Zeit2008-10-01 19:41:42
Autoriselllo
Commiteriselllo

Log Message

Just added some trivial changes to the code (mainly removed some print
statements).

Ändern Zusammenfassung

Diff

diff -r c18349590661 -r 323ab84bc8b3 Python-codes/mathias_example.py
--- a/Python-codes/mathias_example.py Tue Sep 30 22:03:34 2008 +0000
+++ b/Python-codes/mathias_example.py Wed Oct 01 10:41:42 2008 +0000
@@ -78,7 +78,7 @@
7878
7979 def fitting_stat(x,y):
8080 slope, intercept, r, prob2, see = stats.linregress(x,y)
81- #print "len(x) is, ", len(x)
81+
8282 if (len(x)>2):
8383
8484 see=see*s.sqrt(len(x)/(len(x)-2.))
@@ -128,7 +128,7 @@
128128
129129 #Specify the bin structure you want to use
130130
131-linear =0 #linear ==1---> use a linear bin structure and solve smoluchowski equation in standard form
131+linear =1 #linear ==1---> use a linear bin structure and solve smoluchowski equation in standard form
132132 #linear !1---> use a non-linear (log-spaced) bin structure and solve smoluchowski equation
133133 # using the splitting operator
134134
@@ -155,7 +155,6 @@
155155
156156
157157
158-print "vol_grid is, ", vol_grid
159158
160159 if (linear !=1): #calculate the splitting operator on the non-uniform grid
161160 f_garrick=mycount_garrick(vol_grid) #I calculate the splitting operator on the grid
@@ -164,15 +163,13 @@
164163 y0=s.zeros(n_bin)
165164 y0[0]=initial_density #initial state (monodisperse aerosol)
166165
167-print "the initial condition is, ", y0
166+
168167
169168 #Generate the kernel matrix
170169
171170 kernel=Brow_ker_cont_optim(vol_grid)
172171
173-print "kernel is, ", kernel
174172
175-print "time is, ", t
176173
177174 if (linear==1):
178175 solution = si.odeint(coupling_optim, y0, \