summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-05-15 15:45:58 +0200
committerVolker Hoffmann <volker@cheleb.net>2013-05-15 15:45:58 +0200
commit42ae49e385d14adc399ea7498cbfe4e39187c5e0 (patch)
treeb425b80bd6fbf88ab2d0975ec53890400703afb3
parent9ef138478b2db8547f82b7417d2f5194c09924c6 (diff)
read mydisk_XXXXX.txt to stats with more significant digits
-rw-r--r--DiskXYZ.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/DiskXYZ.py b/DiskXYZ.py
index a88789d..557c469 100644
--- a/DiskXYZ.py
+++ b/DiskXYZ.py
@@ -12,7 +12,7 @@ Plots Reduced F(X,Y), F(R) Data.
@todo - Save plots.
Volker Hoffmann <volker@cheleb.net>
-14 May 2013
+15 May 2013
"""
from pymses import RamsesOutput
@@ -166,12 +166,12 @@ class DiskIo(DiskBase):
l5 = lines[5]
l6 = lines[6]
l7 = lines[7]
- self.infall_rate = float(l7[12:20]) * 2. * pi
- self.mass_total = float(l6[12:20])
- self.mass_disk = float(l4[12:20])
- self.mass_halo = float(l5[12:20])
- self.mass_total_lost_to_halo = float(l3[12:20])
- self.mass_total_lost_to_star = float(l2[12:20])
+ self.infall_rate = float(l7[11:33]) * 2. * pi
+ self.mass_total = float(l6[11:33])
+ self.mass_disk = float(l4[11:33])
+ self.mass_halo = float(l5[11:33])
+ self.mass_total_lost_to_halo = float(l3[11:33])
+ self.mass_total_lost_to_star = float(l2[11:33])
def load_npz_minmax(self):
"""Load Min/Max on **Reduced** Data."""