getting list of halo IDs for particles from HaloCatalog

I'm trying to retrieve the list of halo IDs for all particles from a HaloCatalog object. I think it is stored in something like "tags" (if I'm correctly reading yt_astro_analysis/halo_finding/halo_objects.py) but the following did *not* work: from yt.extensions.astro_analysis.halo_analysis.api import HaloCatalog data_ds = yt.load(snapname) hc = HaloCatalog(data_ds=data_ds, finder_method='hop') hc.create() fof_tags = hc.tags The error was: AttributeError: 'HaloCatalog' object has no attribute 'tags' Is it possible to access tags somehow? Or is there another way to get the halo ID list? Thanks.

Hi Romeel, The particle lists are stored like that during the halo finding, but unfortunately, they are not saved when the handoff is made from the halo finders to the HaloCatalog object. As you can see, there aren't too many wires that would need to be connected to make this work. We can discuss how to make this happen if you're interested. Britton On Mon, Jan 27, 2020 at 8:33 PM <romeeld@gmail.com> wrote:
I'm trying to retrieve the list of halo IDs for all particles from a HaloCatalog object. I think it is stored in something like "tags" (if I'm correctly reading yt_astro_analysis/halo_finding/halo_objects.py) but the following did *not* work:
from yt.extensions.astro_analysis.halo_analysis.api import HaloCatalog data_ds = yt.load(snapname) hc = HaloCatalog(data_ds=data_ds, finder_method='hop') hc.create() fof_tags = hc.tags
The error was: AttributeError: 'HaloCatalog' object has no attribute 'tags'
Is it possible to access tags somehow? Or is there another way to get the halo ID list? Thanks. _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
participants (2)
-
Britton Smith
-
romeeld@gmail.com