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

britton at wrangler.dreamhost.com britton at wrangler.dreamhost.com
Tue Jan 13 13:44:44 PST 2009


Author: britton
Date: Tue Jan 13 13:44:38 2009
New Revision: 1110
URL: http://yt.spacepope.org/changeset/1110

Log:
Strapped rootonly decorator on SaveLightConeSolution.  We only need one 
processor to write out the text file.


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

Modified: trunk/yt/extensions/lightcone/LightCone.py
==============================================================================
--- trunk/yt/extensions/lightcone/LightCone.py	(original)
+++ trunk/yt/extensions/lightcone/LightCone.py	Tue Jan 13 13:44:38 2009
@@ -26,6 +26,7 @@
 from yt.extensions.lightcone import *
 from yt.logger import lagosLogger as mylog
 from yt.config import ytcfg
+from yt.funcs import *
 from Common_nVolume import *
 from HaloMask import *
 import copy
@@ -380,6 +381,7 @@
         "Reset the active light cone solution to the master solution."
         self.lightConeSolution = [copy.deepcopy(q) for q in self.masterSolution]
 
+    @rootonly
     def SaveLightConeSolution(self,file="light_cone.dat"):
         "Write out a text file with information on light cone solution."
 



More information about the yt-svn mailing list