[Yt-svn] yt-commit r1501 - branches/yt-1.5/yt/lagos branches/yt-1.5/yt/raven trunk/yt/lagos trunk/yt/raven

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Mon Oct 26 10:00:00 PDT 2009


Author: mturk
Date: Mon Oct 26 09:59:58 2009
New Revision: 1501
URL: http://yt.enzotools.org/changeset/1501

Log:
Setting the default for profile objects created through the PlotCollection
interface as well as derived quantities to be lazy



Modified:
   branches/yt-1.5/yt/lagos/DerivedQuantities.py
   branches/yt-1.5/yt/raven/PlotCollection.py
   trunk/yt/lagos/DerivedQuantities.py
   trunk/yt/raven/PlotCollection.py

Modified: branches/yt-1.5/yt/lagos/DerivedQuantities.py
==============================================================================
--- branches/yt-1.5/yt/lagos/DerivedQuantities.py	(original)
+++ branches/yt-1.5/yt/lagos/DerivedQuantities.py	Mon Oct 26 09:59:58 2009
@@ -57,7 +57,7 @@
         self.force_unlazy = force_unlazy
 
     def __call__(self, *args, **kwargs):
-        lazy_reader = kwargs.pop('lazy_reader', False)
+        lazy_reader = kwargs.pop('lazy_reader', True)
         preload = kwargs.pop('preload', False)
         if preload:
             if not lazy_reader: mylog.debug("Turning on lazy_reader because of preload")

Modified: branches/yt-1.5/yt/raven/PlotCollection.py
==============================================================================
--- branches/yt-1.5/yt/raven/PlotCollection.py	(original)
+++ branches/yt-1.5/yt/raven/PlotCollection.py	Mon Oct 26 09:59:58 2009
@@ -292,7 +292,7 @@
     def add_profile_object(self, data_source, fields, 
                            weight="CellMassMsun", accumulation=False,
                            x_bins=64, x_log=True, x_bounds=None,
-                           lazy_reader=False, id=None,
+                           lazy_reader=True, id=None,
                            axes=None, figure=None):
         """
         Use an existing data object, *data_source*, to be the source of a
@@ -343,7 +343,7 @@
                                weight="CellMassMsun", accumulation=False,
                                x_bins=64, x_log=True, x_bounds=None,
                                y_bins=64, y_log=True, y_bounds=None,
-                               lazy_reader=False, id=None,
+                               lazy_reader=True, id=None,
                                axes = None, figure = None):
         """
         Given a *data_source*, and *fields*, automatically generate a 2D

Modified: trunk/yt/lagos/DerivedQuantities.py
==============================================================================
--- trunk/yt/lagos/DerivedQuantities.py	(original)
+++ trunk/yt/lagos/DerivedQuantities.py	Mon Oct 26 09:59:58 2009
@@ -57,7 +57,7 @@
         self.force_unlazy = force_unlazy
 
     def __call__(self, *args, **kwargs):
-        lazy_reader = kwargs.pop('lazy_reader', False)
+        lazy_reader = kwargs.pop('lazy_reader', True)
         preload = kwargs.pop('preload', False)
         if preload:
             if not lazy_reader: mylog.debug("Turning on lazy_reader because of preload")

Modified: trunk/yt/raven/PlotCollection.py
==============================================================================
--- trunk/yt/raven/PlotCollection.py	(original)
+++ trunk/yt/raven/PlotCollection.py	Mon Oct 26 09:59:58 2009
@@ -320,7 +320,7 @@
     def add_profile_object(self, data_source, fields, 
                            weight="CellMassMsun", accumulation=False,
                            x_bins=64, x_log=True, x_bounds=None,
-                           lazy_reader=False, id=None,
+                           lazy_reader=True, id=None,
                            axes=None, figure=None):
         """
         Use an existing data object, *data_source*, to be the source of a
@@ -371,7 +371,7 @@
                                weight="CellMassMsun", accumulation=False,
                                x_bins=64, x_log=True, x_bounds=None,
                                y_bins=64, y_log=True, y_bounds=None,
-                               lazy_reader=False, id=None,
+                               lazy_reader=True, id=None,
                                axes = None, figure = None,
                                fractional=False):
         """



More information about the yt-svn mailing list