[yt-svn] commit/yt: ngoldbaum: Fixing an error instroduced by automatically replacing pf with ds.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Jul 18 21:40:12 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/1173d893bff4/
Changeset:   1173d893bff4
Branch:      yt-3.0
User:        ngoldbaum
Date:        2014-07-19 06:40:01
Summary:     Fixing an error instroduced by automatically replacing pf with ds.
Affected #:  1 file

diff -r 8199477842d116eb9db39d05da865eac48ceb30b -r 1173d893bff446a0ddbdc5e81dd46a5d2840d13a yt/analysis_modules/halo_finding/halo_objects.py
--- a/yt/analysis_modules/halo_finding/halo_objects.py
+++ b/yt/analysis_modules/halo_finding/halo_objects.py
@@ -1813,11 +1813,12 @@
 
 
 class GenericHaloFinder(HaloList, ParallelAnalysisInterface):
-    def __init__(self, ds, ds, dm_only=True, padding=0.0):
+    def __init__(self, ds, data_source, dm_only=True, padding=0.0):
         ParallelAnalysisInterface.__init__(self)
         self.ds = ds
         self.index = ds.index
-        self.center = (np.array(ds.right_edge) + np.array(ds.left_edge)) / 2.0
+        self.center = (np.array(data_source.right_edge) +
+                       np.array(data_source.left_edge)) / 2.0
 
     def _parse_halolist(self, threshold_adjustment):
         groups = []

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list