summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2013-08-18 12:43:34 +0200
committerVolker Hoffmann <volker@cheleb.net>2013-08-18 12:43:34 +0200
commitbad9d7d38034074d2a7175147a8c520bc33e3019 (patch)
tree17cd026cac1c3fc746fd252a6d71f11d08b9b20f
parent4a7be90a59a7a79a605e8f0b22e5f1224139c432 (diff)
halo condition Omega_xy <= 1.0e-6 instead of == 0 [there are no perfect zeros due to our sampling and/or the reset]
-rw-r--r--DiskXYZ.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/DiskXYZ.py b/DiskXYZ.py
index e2f070f..b593f2d 100644
--- a/DiskXYZ.py
+++ b/DiskXYZ.py
@@ -491,7 +491,7 @@ class DiskReduce(DiskReduceBase):
def compute_Omega_xy(self):
self.Omega_xy = self.vcyl_xy["vtheta"] / self.rt["r"]
- self.Omega_xy[self.Omega_xy == 0.0] = np.nan
+ self.Omega_xy[self.Omega_xy <= 1.0e-6] = np.nan
def compute_h_xy(self):
self.h_xy = np.sqrt(self.cs2_xy) / self.Omega_xy