<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div><div>Hi Hilary, <br><br></div>Ah OK. That makes sense - thanks for pointing me in the right direction!<br><br></div>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 20, 2014 at 5:48 PM, Hilary Egan <span dir="ltr"><<a href="mailto:hilaryye@gmail.com" target="_blank">hilaryye@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi John,<div><br></div><div>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!</div><div><br></div><div>-Hilary</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Oct 20, 2014 at 7:26 AM, John Regan <span dir="ltr"><<a href="mailto:johnanthonyregan@gmail.com" target="_blank">johnanthonyregan@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi All, <div><br></div><div>I was testing out the new HaloCatalog infrastructure and I got stuck pretty quickly :)</div><div><br></div><div>When trying to access the halo mass I tried to do so using the all_data() function and then the </div><div>particle mass field e.g.</div><div><br></div><div><div>hc = HaloCatalog(data_ds=data_ds, finder_method='hop')</div><div>hc.create()</div><div>ad = hc.all_data()</div><div>masses = ad['particle_mass'][:]</div></div><div><br></div><div>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?</div><div><br></div><div>Cheers,</div><div>John</div><div><br></div><div><div>yt : [INFO     ] 2014-10-20 15:54:11,353 Loaded species (109 new fields)</div><div>/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/units/yt_array.py:739: RuntimeWarning: divide by zero encountered in divide</div><div>  return YTArray(super(YTArray, self).__div__(ro))</div><div>yt : [INFO     ] 2014-10-20 15:54:11,450 Saving halo catalog (2 halos) to halo_catalogs/catalog/catalog.</div><div>Traceback (most recent call last):</div><div>  File "BasicHaloFinder.py", line 12, in <module></div><div>    ad = hc.all_data()</div><div>AttributeError: 'HaloCatalog' object has no attribute 'all_data'</div></div><div><br></div></div>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>