<div dir="ltr"><div>On Thu, Oct 2, 2014 at 9:03 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Britton,<br>
<div><div class="h5"><br>
On Thu, Oct 2, 2014 at 8:34 AM, Britton Smith <<a href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> There seems to be an issue accessing the nuclei density fields.  These are<br>
> derived fields that give the total number density of an element with names<br>
> like "H_nuclei_density."  At some point, these have stopped working and I am<br>
> trying to debug this.  To reproduce this, one can do the following:<br>
> ds = yt.load("enzo_cosmology_plus/DD0046/DD0046")<br>
> ad = ds.all_data()<br>
> ad["H_nuclei_density"]<br>
><br>
> I have traced this as far as the following.  In the call to<br>
> create_field_info, a YTFieldNotFound exception is raised on line 137 of<br>
> yt/fields/species_fields.py.  Here, the nuclei density field function is<br>
> trying to access a number density field that should exist, but doesn't seem<br>
> to at the moment.  Later on it does, but not at this moment.  Does anyone<br>
> have any advice for where to look next?<br>
<br>
</div></div>It might have to do with the order of field addition.  When does the<br>
field actually get added?  Can you insert pdb calls into add_field<br>
whenever the field you're looking for is added, and see when it occurs<br>
compared to when the other one does?<br></blockquote><div><br></div><div>Hi Britton,</div><div>it's just as Matt suggested. Creating nuclei fields prior to species fields fixes the issue:</div><div><br></div><div><a href="http://paste.yt-project.org/show/5143/">http://paste.yt-project.org/show/5143/</a></div><div><br></div><div>Cheers,</div><div>Kacper </div></div></div></div>