[Yt-svn] yt-commit r1098 - trunk/yt/extensions/lightcone

britton at wrangler.dreamhost.com britton at wrangler.dreamhost.com
Thu Jan 8 17:50:32 PST 2009


Author: britton
Date: Thu Jan  8 17:50:27 2009
New Revision: 1098
URL: http://yt.spacepope.org/changeset/1098

Log:
Changed some print formatting in unique seed generator.


Modified:
   trunk/yt/extensions/lightcone/UniqueSolution.py

Modified: trunk/yt/extensions/lightcone/UniqueSolution.py
==============================================================================
--- trunk/yt/extensions/lightcone/UniqueSolution.py	(original)
+++ trunk/yt/extensions/lightcone/UniqueSolution.py	Thu Jan  8 17:50:27 2009
@@ -76,7 +76,7 @@
         rand.seed(seed)
         state = rand.getstate()
 
-    failDigits = str(int(na.log(failures)))
+    failDigits = str(int(na.log10(failures))+1)
 
     while (len(uniqueSeeds) < solutions):
         # Create new random seed.



More information about the yt-svn mailing list