<div dir="ltr">You need to define some particle filters. Enzo only has one on-disk particle type. Particle filters let you define new particle types based on some filtering criterion. For Enzo it's usually sufficient to filter on the ('io', 'particle_type') field.<div><br></div><div>There is an example of adding a particle filter with enzo data in the docs here:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/cookbook/calculating_information.html#using-particle-filters-to-calculate-star-formation-rates">http://yt-project.org/docs/dev/cookbook/calculating_information.html#using-particle-filters-to-calculate-star-formation-rates</a><br></div><div><br></div><div>And more information on particle filters here:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/analyzing/filtering.html?highlight=filter#filtering-particle-fields">http://yt-project.org/docs/dev/analyzing/filtering.html?highlight=filter#filtering-particle-fields</a><br></div><div><br></div><div>The Enzo frontend does not predefine any particle fields since we don't want to accidentally cause users to generate anaylsis or visualization results based on a particle filter definition that does not apply to all data types.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 10:28 AM, Carla Bernhardt <span dir="ltr"><<a href="mailto:carla.j.bernhardt@gmail.com" target="_blank">carla.j.bernhardt@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">Nathan,<div><br></div><div>Yes, of course. <a href="http://paste.yt-project.org/show/7082/" target="_blank">Here is what I tried</a> and <a href="http://paste.yt-project.org/show/7084/" target="_blank">here is the error message</a> I get. What I tried might not be the right way to get this list, but I was hoping someone else has done this before and has some insight.</div><div><br></div><div>Best,</div><div>Carla</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-03-14 16:00 GMT+01:00 Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Carla,<div><br></div><div>Can you share the script you're running and the full error message and traceback you're seeing? If you can, it helps if you can make your script that triggers your issue as minimal as possible.</div><div><br></div><div>We have the yt pastebin set up for sharing snippets of code and text: <a href="http://paste.yt-project.org" target="_blank">paste.yt-project.org</a>.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_2955670787951488393h5">On Tue, Mar 14, 2017 at 2:30 AM, Carla Bernhardt <span dir="ltr"><<a href="mailto:carla.j.bernhardt@gmail.com" target="_blank">carla.j.bernhardt@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="m_2955670787951488393h5"><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg">Dear yt users,</span></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><br></span></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg">I am trying to extract a list of star particles and their positions and masses from enzo. This seems to be right along the lines of </span><a href="http://yt-project.org/doc/analyzing/fields.html" style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg" target="_blank">this tutorial</a><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg">, but I am still stuck. If I try</span><br style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><br style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg">print(ad["dark_matter", "particle_position"])</span><br style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg">print(ad["stars", "particle_position"])</span><br style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg">print(ad["black_holes", "particle_position"])</span><br style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><br style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg">I get that none of these fields are available in my provided data. I am using Stochastic Star Formation with a MBH inserted (i.e. StarParticleCreation=514).</span><br class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.8px" class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><br></span></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.800000190734863px">Thanks in advance,</span></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.800000190734863px">Carla Bernhardt </span></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.800000190734863px">PhD Student </span></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.800000190734863px">Universität Heidelberg</span></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.800000190734863px">ZAH Institut für Theoretische Astrophysik</span></div><div class="m_2955670787951488393m_3363141233608271610m_6152427825055661655gmail_msg"><span style="font-size:12.800000190734863px"><br></span></div>
<br></div></div>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.o<wbr>rg</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>