[Yt-svn] yt-commit r381 - trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Mon Feb 25 09:14:03 PST 2008


Author: mturk
Date: Mon Feb 25 09:14:02 2008
New Revision: 381
URL: http://yt.spacepope.org/changeset/381

Log:
Sign error in a conversion factor no one probably uses.

Modified:
   trunk/yt/lagos/OutputTypes.py

Modified: trunk/yt/lagos/OutputTypes.py
==============================================================================
--- trunk/yt/lagos/OutputTypes.py	(original)
+++ trunk/yt/lagos/OutputTypes.py	Mon Feb 25 09:14:02 2008
@@ -180,7 +180,7 @@
         boxcm_cal = self["CosmologyComovingBoxSize"]
         boxcm_uncal = boxcm_cal / h
         box_proper = boxcm_uncal/(1+z)
-        self.units['aye']  = (1.0 + self["CosmologyInitialRedshift"])/(z - 1.0)
+        self.units['aye']  = (1.0 + self["CosmologyInitialRedshift"])/(z + 1.0)
         if not self.has_key("Time"):
             LengthUnit = 3.086e24 * box_proper
             self.conversion_factors["Time"] = LengthUnit / self["x-velocity"]



More information about the yt-svn mailing list