tChanged format of txt output values in shear visualization method - sphere - G… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit b3a14695511b1c825ed7bd11f7ea0e0f07a3da98 | |
parent b3fbad2ab9c5908a72d02bfb9e02f5894e4c45ac | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 27 Dec 2012 11:57:34 +0100 | |
Changed format of txt output values in shear visualization method | |
Diffstat: | |
M python/sphere.py | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -1342,10 +1342,10 @@ def visualize(project, method = 'energy', savefig = Tr… | |
L = sb.L[2] - sb.origo[2] # Initial height | |
for i in range(lastfile+1): | |
# format: shear distance [mm], sigma [kPa], tau [kPa], Dil… | |
- fh.write("{0}\t{1}\t{2}\t{3}\n".format(xdisp[i]*1000.0, | |
+ fh.write("{0}\t{1}\t{2}\t{3}\n".format(xdisp[i], | |
sigma_eff[i]/1000.0, | |
tau[i]/1000.0, | |
- dilation[i]/L*100.0)) | |
+ dilation[i])) | |
finally : | |
if fh is not None: | |
fh.close() |