[yt-users] combining data objects

Matthew Turk matthewturk at gmail.com
Tue Sep 6 12:45:51 PDT 2011


Hi Christine,

You can do this with Extracted regions using the .join() method.
Right now it doesn't work for regular data objects.  However, one
could make up a new data object that does this.  You could create a
new data object:

http://yt-project.org/docs/2.2/advanced/creating_datatypes.html

and have it calculate joins for each of the sub objects it represents
for _get_list_of_grids, return a logical or of _get_fully_enclosed
called on each sub-object, and a logical or for _get_cut_mask called
on each sub-object.  If you do this, it would be awesome if you'd
fork:

https://bitbucket.org/yt_analysis/yt/fork

and issue a pull request with the new object!  There may be some
subtleties with passing field parameters down, but we can deal with
that later.

-Matt

On Tue, Sep 6, 2011 at 3:31 PM, Christine Simpson
<csimpson at astro.columbia.edu> wrote:
> Hi all,
>
> Is there a simple way I can combine two data objects to create a new
> data object?  For example, if I created two sphere objects, is there a
> way I can combine them to create an object that contains the data of
> both of them?
>
> Thanks
> Christine
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list