Hi Luigi,<div><br></div><div>I've looked over your code and I can't see anything specifically wrong.  Can you post the error message you're getting?  That might help.  As a side note, you may want to replace pf['InitialTime'] on line 35 with <a href="http://data.pf">data.pf</a>['InitialTime'].  The pf is global within your script, but if you those field functions in other files you will get an error because the function will not know about pf.</div>
<div><br></div><div>Britton<br><br></div><div><div class="gmail_quote">On Mon, Feb 15, 2010 at 6:09 AM, Luigi Iapichino <span dir="ltr"><<a href="mailto:luigi@ita.uni-heidelberg.de">luigi@ita.uni-heidelberg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear all,<br>
<br>
I'm trying to plot the projection of a variable defined in a rather involved<br>
way, namely through an IF statement. I can use this variable for many<br>
computations and I can plot slices of it, but somehow it does not work with<br>
projections. I attach an example script which isolates the problem. I guess<br>
it can run on any standard cosmological output of Enzo (v. 1.0; I haven't<br>
worked with Enzo 1.5 yet). As I told you, if I change the<br>
pc.add_projection(... at line 65 with<br>
pc.add_slice(...<br>
everything works well.<br>
I'm using YT 1.6, and because of problems in my machine I cannot upgrade to<br>
1.6.1 until next week, so I don't know if this issue has been already fixed<br>
by chance.<br>
Looking forward to your suggestions,<br>
Cheers,<br>
<br>
  Luigi<br>
<br>
--<br>
<br>
---------------------------------------------------------------<br>
<font color="#888888"><br>
Luigi Iapichino<br>
Zentrum fuer Astronomie der Universitaet Heidelberg<br>
Institut fuer Theoretische Astrophysik<br>
Albert-Ueberle-Str. 2, D-69120 Heidelberg, Germany<br>
Tel: +49 6221 548983, Fax: +49 6221 544221<br>
e-mail: <a href="mailto:luigi@ita.uni-heidelberg.de">luigi@ita.uni-heidelberg.de</a><br>
URL: <a href="http://www.ita.uni-heidelberg.de/~luigi/" target="_blank">http://www.ita.uni-heidelberg.de/~luigi/</a><br>
</font><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>