[yt-svn] commit/yt: 3 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun May 26 18:16:47 PDT 2013


3 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/6cbf94b273a0/
Changeset:   6cbf94b273a0
Branch:      yt
User:        brittonsmith
Date:        2013-05-26 15:58:49
Summary:     Forgot to create a 'center' entry in the halo list dict.
Affected #:  1 file

diff -r ea61067c25f0d228f9168ee0ffae0dfb8f4ae360 -r 6cbf94b273a0ed440cef4976ffc4f21bc582f8f0 yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
--- a/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
+++ b/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
@@ -496,7 +496,7 @@
         del hp
 
         # Create position array from halo list.
-        return_list = dict([(field, []) for field in fields])
+        return_list = dict([(field, []) for field in fields + ['center']])
         for halo in hp_list:
             for field in fields + ['center']:
                 return_list[field].append(halo[field])


https://bitbucket.org/yt_analysis/yt/commits/62349274559e/
Changeset:   62349274559e
Branch:      yt
User:        brittonsmith
Date:        2013-05-26 16:03:03
Summary:     Forgot to turn halo lists into arrays.
Affected #:  1 file

diff -r 6cbf94b273a0ed440cef4976ffc4f21bc582f8f0 -r 62349274559eba8290196f498bbd57ee796943b8 yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
--- a/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
+++ b/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
@@ -500,6 +500,8 @@
         for halo in hp_list:
             for field in fields + ['center']:
                 return_list[field].append(halo[field])
+        for field in fields + ['center']:
+            return_list[field] = np.array(return_list[field])
         return return_list
         
     def _get_nearest_halo_properties(self, data, halo_list, fields=None):


https://bitbucket.org/yt_analysis/yt/commits/0bf71f6a8a5f/
Changeset:   0bf71f6a8a5f
Branch:      yt
User:        MatthewTurk
Date:        2013-05-27 03:16:40
Summary:     Merged in brittonsmith/yt (pull request #517)

Fixing how halo list is loaded in LightRay (Closes Issue #580)
Affected #:  1 file

diff -r e456caeed06364a0a38759636e8a8d68eed7c47e -r 0bf71f6a8a5f055b154903730a01ffbe310a8a73 yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
--- a/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
+++ b/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
@@ -496,10 +496,12 @@
         del hp
 
         # Create position array from halo list.
-        return_list = dict([(field, []) for field in fields])
+        return_list = dict([(field, []) for field in fields + ['center']])
         for halo in hp_list:
             for field in fields + ['center']:
                 return_list[field].append(halo[field])
+        for field in fields + ['center']:
+            return_list[field] = np.array(return_list[field])
         return return_list
         
     def _get_nearest_halo_properties(self, data, halo_list, fields=None):

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