<p>Hi Stephen, </p>
<p>Since we have the luxury in this particular case of addressing both supply side and consumer side behavior, my inclination is for the more elegant solution. In this case, I would say that is option two, where particles are explicitly noted in the Enzo output.</p>

<p>Matt</p>
<div class="gmail_quote">On Dec 18, 2012 11:00 AM, "Stephen Skory" <<a href="mailto:s@skory.us">s@skory.us</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I am starting to have potentially useful active particles in Enzo 3.0,<br>
and I'd like to look at them with yt 3.0. However, I'm still running<br>
into some problems accessing the active particles (APs).<br>
<br>
Specifically, the problems seems to be that in<br>
frontends/enzo/data_structures.py it's only looking for APs identified<br>
through parameter_file.parameters["AppendActiveParticleType"], but<br>
"DarkMatter" isn't listed as an AP type in the Enzo parameter file.<br>
Also, the inner loop over HDF5 AP group members in<br>
_detect_active_particle_fields(self) includes the "DarkMatter" field,<br>
which isn't expected, and causes a KeyError for the dict that is being<br>
built there.<br>
<br>
I think that there are a couple potential fixes for this (that I'm<br>
willing to do/help with), and I'd like your thoughts on them, please:<br>
<br>
1. Modify yt such that the "DarkMatter" AP field is treated more like<br>
the non-AP fields, meaning that instead of using the<br>
"AppendActiveParticleType" parameter as the driver for searching,<br>
instead auto-detect "DarkMatter". Unlike other APs, "DarkMatter"<br>
should be in most grids and random auto-detection should work.<br>
<br>
2. In Enzo include "DarkMatter" as a dummy AP type which would have<br>
the main/only effect of including "DarkMatter" as a<br>
"AppendActiveParticleType" parameter. I think that this would address<br>
all of the present issues with yt. Or perhaps even better, introduce a<br>
new Enzo parameter "ParticleTypesPresent" that would be<br>
("AppendActiveParticleType") + "DarkMatter" most of the time.<br>
<br>
Thank you for your thoughts!<br>
<br>
--<br>
Stephen Skory<br>
<a href="mailto:s@skory.us">s@skory.us</a><br>
<a href="http://stephenskory.com/" target="_blank">http://stephenskory.com/</a><br>
<a href="tel:510.621.3687" value="+15106213687">510.621.3687</a> (google voice)<br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</blockquote></div>