[Yt-svn] yt-commit r1200 - in trunk: . yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Wed Mar 4 09:55:53 PST 2009


Author: mturk
Date: Wed Mar  4 09:55:52 2009
New Revision: 1200
URL: http://yt.spacepope.org/changeset/1200

Log:
Added a few more notices to credits

Added unit formulation #1712 to the parser for units.  Had to add a new
parameter to the parameter dict.



Modified:
   trunk/CREDITS
   trunk/yt/lagos/EnzoDefs.py
   trunk/yt/lagos/OutputTypes.py

Modified: trunk/CREDITS
==============================================================================
--- trunk/CREDITS	(original)
+++ trunk/CREDITS	Wed Mar  4 09:55:52 2009
@@ -1,4 +1,4 @@
-YT is increasingly a group project.
+YT is a group effort.
 
 Lead Developer:                     Matthew Turk (matthewturk at gmail.com)
 Orion Support:                      Jeff Oishi (jsoishi at gmail.com)
@@ -6,6 +6,7 @@
 Galaxy Merger Trees:                Stephen Skory (sskory at physics.ucsd.edu)
 
 We also include the Delaunay Triangulation module written by Robert Kern of
-Enthought.
+Enthought, the cmdln.py module by Trent Mick, and the progressbar module by
+Nilton Volpato.
 
 Thanks to everyone for all your contributions!

Modified: trunk/yt/lagos/EnzoDefs.py
==============================================================================
--- trunk/yt/lagos/EnzoDefs.py	(original)
+++ trunk/yt/lagos/EnzoDefs.py	Wed Mar  4 09:55:52 2009
@@ -60,6 +60,7 @@
                  "ComovingCoordinates": int,
                  "DensityUnits": float,
                  "LengthUnits": float,
+                 "LengthUnit": float,
                  "TemperatureUnits": float,
                  "TimeUnits": float,
                  "GravitationalConstant": float,

Modified: trunk/yt/lagos/OutputTypes.py
==============================================================================
--- trunk/yt/lagos/OutputTypes.py	(original)
+++ trunk/yt/lagos/OutputTypes.py	Wed Mar  4 09:55:52 2009
@@ -303,6 +303,10 @@
             self._parse_parameter_file()
         if self["ComovingCoordinates"]:
             self._setup_comoving_units()
+        elif self.has_key("LengthUnit"):
+            # 'Why share when we can reinvent incompatibly?'
+            self.parameters["LengthUnits"] = self["LengthUnit"]
+            self._setup_getunits_units()
         elif self.has_key("LengthUnits"):
             self._setup_getunits_units()
         else:
@@ -336,17 +340,8 @@
         self.units['aye']  = 1.0
         for unit in mpc_conversion.keys():
             self.units[unit] = mpc_conversion[unit] * box_proper
-
-    def _setup_nounits_units(self):
-        z = 0
-        box_proper = ytcfg.getfloat("lagos","nounitslength")
-        self.units['aye'] = 1.0
-        mylog.warning("No length units.  Setting 1.0 = %0.3e proper Mpc.", box_proper)
         if not self.has_key("TimeUnits"):
-            mylog.warning("No time units.  Setting 1.0 = 1 second.")
-            self.conversion_factors["Time"] = 1.0
-        for unit in mpc_conversion.keys():
-            self.units[unit] = mpc_conversion[unit] * box_proper
+            self.conversion_factors["Time"] = self["LengthUnits"] / self["x-velocity"]
 
     def cosmology_get_units(self):
         """



More information about the yt-svn mailing list