Re: [yt-users] profile plots combining different datasets
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.
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
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Nathan Goldbaum
-
tyuta