[yt-users] profile plots combining different datasets

Nathan Goldbaum nathan12343 at gmail.com
Fri Nov 3 17:03:20 PDT 2017


I wonder what would break if we got rid of this error:

In [5]: dobj = ds.all_data() + ds2.all_data()
---------------------------------------------------------------------------
YTBooleanObjectsWrongDataset              Traceback (most recent call last)
~/Documents/yt-git-fixes/yt/mods.py in <module>()
----> 1 dobj = ds.all_data() + ds2.all_data()

~/Documents/yt-git-fixes/yt/data_objects/data_containers.py in
__add__(self, other)
   1423
   1424     def __add__(self, other):
-> 1425         return self.__or__(other)
   1426
   1427     def __sub__(self, other):

~/Documents/yt-git-fixes/yt/data_objects/data_containers.py in __or__(self,
other)
   1399             raise YTBooleanObjectError(other)
   1400         if self.ds is not other.ds:
-> 1401             raise YTBooleanObjectsWrongDataset()
   1402         # Should maybe do something with field parameters here
   1403         return YTBooleanContainer("OR", self, other, ds = self.ds)

YTBooleanObjectsWrongDataset: Boolean data objects must share a common
dataset object.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171103/6a730b3a/attachment-0002.html>


More information about the yt-users mailing list