[yt-svn] commit/yt: ngoldbaum: Merged in brittonsmith/yt (pull request #2299)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sat Jul 23 06:00:30 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/119f0e327091/
Changeset:   119f0e327091
Branch:      yt
User:        ngoldbaum
Date:        2016-07-23 13:00:00+00:00
Summary:     Merged in brittonsmith/yt (pull request #2299)

[bugfix] Allow light_ray data containers to query fields.
Affected #:  1 file

diff -r 3def30daea80724afecc4b301ff3338e64e07cd5 -r 119f0e32709181f5fc5606a85abdd208c3a5e14e yt/frontends/ytdata/data_structures.py
--- a/yt/frontends/ytdata/data_structures.py
+++ b/yt/frontends/ytdata/data_structures.py
@@ -196,8 +196,10 @@
 
         # Some data containers can't be recontructed in the same way
         # since this is now particle-like data.
-        if self.parameters["container_type"] in \
-          ["cutting", "proj", "ray", "slice"]:
+        data_type = self.parameters["data_type"]
+        container_type = self.parameters["container_type"]
+        ex_container_type = ["cutting", "proj", "ray", "slice"]
+        if data_type == "yt_light_ray" or container_type in ex_container_type:
             mylog.info("Returning an all_data data container.")
             return self.all_data()

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