Hi Remudin.<div><br></div><div>Could you include the script that is generating the error?</div><div><br></div><div>I'm not sure without the script, but it looks like you are trying to access the "particle_position_y" field and it is not in the plotfile you are working with.</div>

<div><br></div><div>Best,</div><div>Casey</div><div><br><br><div class="gmail_quote">On Thu, May 24, 2012 at 11:15 AM, REMUDIN RESHID MEKURIA <span dir="ltr"><<a href="mailto:remudin@yahoo.com" target="_blank">remudin@yahoo.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><font size="4">Dear all,</font><div><font size="4"><br></font></div><div><font size="4">Thank you for your help in advance.</font></div>

<div><font size="4">I am currently running cosmological simulations using Nyx code.</font></div><div><font size="4">And while trying to over plotting particles on the density slice, I encountered the following error which I couldn't resolve. I will greatly appreciate your help.</font></div>

<div><br></div><div><div><font color="#01115b">Traceback (most recent call last):</font></div><div><font color="#01115b">  File "./OverPlotingParticles.py", line 14, in <module></font></div><div><font color="#01115b">    pc.set_width(1.0, '1') # change width of our plot to the full domain</font></div>

<div><font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/visualization/plot_collection.py", line 267, in set_width</font></div><div><font color="#01115b">    plot.set_width(width, unit)</font></div>

<div><font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/visualization/plot_types.py", line 441, in set_width</font></div><div><font color="#01115b">    self._refresh_display_width()</font></div>

<div><font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/visualization/plot_types.py", line 459, in _refresh_display_width</font></div><div><font color="#01115b">    self._redraw_image()</font></div>

<div><font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/visualization/plot_types.py", line 406, in _redraw_image</font></div><div><font color="#01115b">    self._run_callbacks()</font></div>

<div><font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/visualization/plot_types.py", line 259, in _run_callbacks</font></div><div><font color="#01115b">    cb(self)</font></div><div>

<font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/visualization/plot_modifications.py", line 985, in __call__</font></div><div><font color="#01115b">    &   ( reg[field_y] >= y0 ) & ( reg[field_y] <= y1 ) )</font></div>

<div><font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 319, in __getitem__</font></div><div><font color="#01115b">    self.get_data(key)</font></div>

<div><font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 2410, in get_data</font></div><div><font color="#01115b">    if self._generate_field(field):</font></div>

<div><font color="#01115b">  File "/home/uni06/cosmo/rmekuri/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 352, in _generate_field</font></div><div><font color="#01115b">    raise KeyError(field)</font></div>

<div><font color="#01115b">KeyError: 'particle_position_y'</font></div><div><br></div><div>
<div><p align="LEFT" style="margin-bottom:0in"><span style="font-size:large">With best regards,</span></p><div><br></div><div>Cheers,</div><div><br></div><div>Remudin</div><p align="LEFT" style="margin-bottom:0in"><font face="Menlo"><font color="#000000">---</font>---</font></p>

<p align="LEFT" style="margin-bottom:0in"><font color="#000000" face="Menlo">Remudin Reshid Mekuria                              phone: <a href="tel:%2B49%20%280%29551%2039-13805" value="+495513913805" target="_blank">+49 (0)551 39-13805</a></font></p>

<p align="LEFT" style="margin-bottom:0in"><font color="#000000" face="Menlo">IAG, Friedrich-Hund-Plaz 1                           fax: <a href="tel:%2B49%20%280%29551%2039-5043" value="+49551395043" target="_blank">+49 (0)551 39-5043</a></font></p>

<p align="LEFT" style="margin-bottom:0in"><font color="#000000" face="Menlo">D-37077 Goettingen</font></p><p align="LEFT" style="margin-bottom:0in"><font color="#000000" face="Menlo">Germany</font></p></div><div><font color="#000000" face="Menlo"><br>

</font></div><br>
</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>