[yt-users] profile plots combining different datasets

tyuta y0u1t1a5.t at gmail.com
Fri Nov 3 17:58:03 PDT 2017


Dear Nathan and Britton,

Thank you for your advices! I will try making binfield to be 2D matrix.
It is always very helpful that you answer so quickly every time. Thanks a
lot!

Y.T.


2017-11-03 20:03 GMT-04:00 Nathan Goldbaum <nathan12343 at gmail.com>:

> 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.
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171103/4096968a/attachment-0002.html>


More information about the yt-users mailing list