[Yt-svn] yt-commit r1352 - branches/yt-1.5/yt/lagos trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Sat Jun 20 12:12:00 PDT 2009
Author: mturk
Date: Sat Jun 20 12:11:59 2009
New Revision: 1352
URL: http://yt.spacepope.org/changeset/1352
Log:
Fixed a bug with some cosmology runs where the time conversion was off by a
factor of aye
Modified:
branches/yt-1.5/yt/lagos/OutputTypes.py
trunk/yt/lagos/OutputTypes.py
Modified: branches/yt-1.5/yt/lagos/OutputTypes.py
==============================================================================
--- branches/yt-1.5/yt/lagos/OutputTypes.py (original)
+++ branches/yt-1.5/yt/lagos/OutputTypes.py Sat Jun 20 12:11:59 2009
@@ -338,8 +338,8 @@
box_proper = boxcm_uncal/(1+z)
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"]
+ cu = self.cosmology_get_units()
+ self.conversion_factors["Time"] = cu['utim']
for unit in mpc_conversion:
self.units[unit] = mpc_conversion[unit] * box_proper
self.units[unit+'h'] = mpc_conversion[unit] * box_proper * h
Modified: trunk/yt/lagos/OutputTypes.py
==============================================================================
--- trunk/yt/lagos/OutputTypes.py (original)
+++ trunk/yt/lagos/OutputTypes.py Sat Jun 20 12:11:59 2009
@@ -338,8 +338,8 @@
box_proper = boxcm_uncal/(1+z)
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"]
+ cu = self.cosmology_get_units()
+ self.conversion_factors["Time"] = cu['utim']
for unit in mpc_conversion:
self.units[unit] = mpc_conversion[unit] * box_proper
self.units[unit+'h'] = mpc_conversion[unit] * box_proper * h
More information about the yt-svn
mailing list