[Yt-svn] yt-commit r1511 - trunk/yt/extensions

britton at wrangler.dreamhost.com britton at wrangler.dreamhost.com
Fri Oct 30 21:29:14 PDT 2009


Author: britton
Date: Fri Oct 30 21:29:14 2009
New Revision: 1511
URL: http://yt.enzotools.org/changeset/1511

Log:
Fixed bug in calculation of data dumps required for making light cones.


Modified:
   trunk/yt/extensions/EnzoSimulation.py

Modified: trunk/yt/extensions/EnzoSimulation.py
==============================================================================
--- trunk/yt/extensions/EnzoSimulation.py	(original)
+++ trunk/yt/extensions/EnzoSimulation.py	Fri Oct 30 21:29:14 2009
@@ -210,8 +210,8 @@
         self.enzoParameters['DataDumpDir'] = "DD"
         self.enzoParameters['ComovingCoordinates'] = 0
 
-    def imagine_maximal_splice(self, initial_redshift, final_redshift, decimals=3, filename=None, 
-                                redshift_output_string='CosmologyOutputRedshift', start_index=0):
+    def imagine_minimal_splice(self, initial_redshift, final_redshift, decimals=3, filename=None, 
+                               redshift_output_string='CosmologyOutputRedshift', start_index=0):
         "Create imaginary list of redshift outputs to maximally span a redshift interval."
 
         z = initial_redshift
@@ -221,6 +221,7 @@
             rounded = na.round(z, decimals=decimals)
             if rounded - z < 0:
                 rounded += na.power(10.0,(-1.0*decimals))
+            z = rounded
             deltaz_max = deltaz_forward(self.cosmology, z, self.enzoParameters['CosmologyComovingBoxSize'])
             outputs.append({'redshift': z, 'deltazMax': deltaz_max})
             z -= deltaz_max



More information about the yt-svn mailing list