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

britton at wrangler.dreamhost.com britton at wrangler.dreamhost.com
Thu Jun 18 11:10:11 PDT 2009


Author: britton
Date: Thu Jun 18 11:10:10 2009
New Revision: 1351
URL: http://yt.spacepope.org/changeset/1351

Log:
Returned lazy_reader to false for profile/projection calls in HaloProfiler 
which was causing it to hang on the last set of halos.  Let's all stand up 
and take a bow!


Modified:
   trunk/yt/extensions/HaloProfiler.py

Modified: trunk/yt/extensions/HaloProfiler.py
==============================================================================
--- trunk/yt/extensions/HaloProfiler.py	(original)
+++ trunk/yt/extensions/HaloProfiler.py	Thu Jun 18 11:10:10 2009
@@ -153,7 +153,7 @@
 
                 profile = lagos.BinnedProfile1D(sphere,self.haloProfilerParameters['n_bins'],"RadiusMpc",
                                                 r_min,halo['r_max'],
-                                                log_space=True, lazy_reader=True)
+                                                log_space=True, lazy_reader=False)
                 for field in self.profileFields.keys():
                     profile.add_fields(field,weight=self.profileFields[field][0],
                                        accumulation=self.profileFields[field][1])
@@ -252,7 +252,7 @@
                 y_axis = coords[1]
 
                 for field in self.projectionFields.keys():
-                    pc.add_projection(field,w,weight_field=self.projectionFields[field],source=region,**kwargs)
+                    pc.add_projection(field,w,weight_field=self.projectionFields[field],source=region,lazy_reader=False,**kwargs)
 
                 # Set x and y limits, shift image if it overlaps domain boundary.
                 if need_per:



More information about the yt-svn mailing list