dnarayanan / powderday

powderday dust radiative transfer
BSD 3-Clause "New" or "Revised" License
22 stars 16 forks source link

update gadget/gizmo front ends to only build from PartType0 #204

Open dnarayanan opened 1 year ago

dnarayanan commented 1 year ago

notes in yt slack:

YTOctree(left_edge=None, right_edge=None, n_ref=32, ptypes=None, ds=None, field_parameters=None)

where:

 |  ptypes: list
 |      This is the type of particles to include when building the tree. This
 |      will default to all particles.
dnarayanan commented 1 year ago

based on conversations with @aussing and tied to this issue:

https://github.com/dnarayanan/powderday/issues/146

this will hopefully dramatically reduce the computation time for very large datasets

dnarayanan commented 1 year ago

update - this is the magic line:

octree = ds.octree(left_edge = None, right_edge =None, ptypes=['PartType0'])