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

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


3 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/548db945712b/
Changeset:   548db945712b
Branch:      yt
User:        brittonsmith
Date:        2016-07-22 15:47:09+00:00
Summary:     Allow light_ray data containers to query fields.
Affected #:  1 file

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


https://bitbucket.org/yt_analysis/yt/commits/4f95ee68b69f/
Changeset:   4f95ee68b69f
Branch:      yt
User:        brittonsmith
Date:        2016-07-22 16:15:29+00:00
Summary:     Change from Nathan to make cleaner.
Affected #:  1 file

diff -r 548db945712b782028cf5b2753d67360b9b18735 -r 4f95ee68b69f00a8639345bfc044f5cad5ea4f0d yt/frontends/ytdata/data_structures.py
--- a/yt/frontends/ytdata/data_structures.py
+++ b/yt/frontends/ytdata/data_structures.py
@@ -196,9 +196,10 @@
 
         # Some data containers can't be recontructed in the same way
         # since this is now particle-like data.
-        if self.parameters["data_type"] in ["yt_light_ray"] or \
-          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()
 


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