[yt-users] Halo Analysis in 3.0

John Regan johnanthonyregan at gmail.com
Mon Oct 20 10:13:58 PDT 2014


Hi Hilary,

Ah OK. That makes sense - thanks for pointing me in the right direction!

John

On Mon, Oct 20, 2014 at 5:48 PM, Hilary Egan <hilaryye at gmail.com> wrote:

> Hi John,
>
> Unfortunately that's a typo in the docs that I should fix. You can access
> all_data by calling hc.halos_ds.all_data(). Sorry about the confusion!
>
> -Hilary
>
> On Mon, Oct 20, 2014 at 7:26 AM, John Regan <johnanthonyregan at gmail.com>
> wrote:
>
>> 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'
>>
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141020/5ef4f42f/attachment.html>
-------------- 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