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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Tue May 13 10:07:25 PDT 2008


Author: mturk
Date: Tue May 13 10:07:24 2008
New Revision: 464
URL: http://yt.spacepope.org/changeset/464

Log:
Sigh, yet another stupid mistake.  Unit testing needs to be done for the quantities.



Modified:
   trunk/yt/lagos/DerivedQuantities.py

Modified: trunk/yt/lagos/DerivedQuantities.py
==============================================================================
--- trunk/yt/lagos/DerivedQuantities.py	(original)
+++ trunk/yt/lagos/DerivedQuantities.py	Tue May 13 10:07:24 2008
@@ -181,9 +181,9 @@
         pb.update(cells_done)
         if truncate and (potential > kinetic):
             pb.finish()
-            return 1.0
+            return [1.0]
     pb.finish()
-    return (kinetic / potential)
+    return [(kinetic / potential)]
 def _combIsBound(data,bound):
     return bound
 add_quantity("IsBound",function=_IsBound,combine_function=_combIsBound,n_ret=1,



More information about the yt-svn mailing list