[yt-users] Halo Analysis in 3.0

John Regan johnanthonyregan at gmail.com
Mon Oct 20 06:26:12 PDT 2014


Hi All,

I was testing out the new HaloCatalog infrastructure and I got stuck pretty
quickly :)

When trying to access the halo mass I tried to do so using the all_data()
function and then the
particle mass field e.g.

hc = HaloCatalog(data_ds=data_ds, finder_method='hop')
hc.create()
ad = hc.all_data()
masses = ad['particle_mass'][:]

but the script failed on trying to access the all_data function - see
traceback below. What is the best way to get at the Halo properties?

Cheers,
John

yt : [INFO     ] 2014-10-20 15:54:11,353 Loaded species (109 new fields)
/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/units/yt_array.py:739:
RuntimeWarning: divide by zero encountered in divide
  return YTArray(super(YTArray, self).__div__(ro))
yt : [INFO     ] 2014-10-20 15:54:11,450 Saving halo catalog (2 halos) to
halo_catalogs/catalog/catalog.
Traceback (most recent call last):
  File "BasicHaloFinder.py", line 12, in <module>
    ad = hc.all_data()
AttributeError: 'HaloCatalog' object has no attribute 'all_data'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141020/1690807b/attachment.htm>
-------------- next part --------------
_______________________________________________
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