Dear Paco,
You may be able to achieve what you want using `yt.load_octree` (see https://yt-project.org/doc/reference/api/yt.frontends.stream.data_structures.html#yt.frontends.stream.data_structures.load_octree), though I never tried it myself.
The function expects the octs to be fed in a depth-first manner (see https://en.wikipedia.org/wiki/Depth-first_search).
Out of curiosity, what format has the data you are trying to load?
Cheers,
Corentin
On 26/09/2020 21:14, Paco Holguin wrote:
Hello,
I've looked at the documentation and it seems that octree datasets are loadable for a few specific codes, but not in general. I have an octree that represents galaxy simulation data, but it's produced as an output of an analysis script. It would be nice to take advantage of yt's capabilities to do analysis.
Is there a simple way to load an generic octree or would I have to write a front-end myself (as described in the documentation and by looking at ART, for example)?
Thanks!
Paco Holguin
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: contact@cphyc.me