[Yt-svn] yt-commit r920 - trunk/examples
britton at wrangler.dreamhost.com
britton at wrangler.dreamhost.com
Tue Nov 11 15:35:37 PST 2008
Author: britton
Date: Tue Nov 11 15:35:37 2008
New Revision: 920
URL: http://yt.spacepope.org/changeset/920
Log:
Added new light cone features to example script.
Modified:
trunk/examples/makeLightCone.py
Modified: trunk/examples/makeLightCone.py
==============================================================================
--- trunk/examples/makeLightCone.py (original)
+++ trunk/examples/makeLightCone.py Tue Nov 11 15:35:37 2008
@@ -8,6 +8,10 @@
q.CalculateLightConeSolution()
+# If random seed was not provided in the parameter file, it can be given
+# straight to the routine.
+q.CalculateLightConeSolution(seed=123456789)
+
# Save a text file detailing the light cone solution.
q.SaveLightConeSolution()
@@ -30,7 +34,7 @@
# This will allow the projection objects that have already been made
# to be re-used.
# Just don't use the same random seed as the original.
-q.RecycleLightConeSolution(987654321)
+q.RerandomizeLightConeSolution(987654321,recycle=True)
# Save the recycled solution.
q.SaveLightConeSolution(file='light_cone_recycled.out')
@@ -40,3 +44,6 @@
# Save the stack.
q.SaveLightConeStack(file='light_cone_recycled.h5')
+
+# Rerandomize the light cone solution with an entirely new solution.
+q.RerandomizeLightConeSolution(8675309,recycle=False)
More information about the yt-svn
mailing list