<div dir="ltr">Hi Wing,<div><br></div><div>Thanks for the bug report, I'm able to reproduce it over here. The issue seems to be that we incremented the "version" number in the latest enzo release and that has interfered with the logic in yt that is used to detect the version of the output type.</div>

<div><br></div><div>I've created an issue to track this here: <a href="https://bitbucket.org/yt_analysis/yt/issue/881/yt-is-unable-to-read-outputs-created-by">https://bitbucket.org/yt_analysis/yt/issue/881/yt-is-unable-to-read-outputs-created-by</a></div>

<div><br></div><div>Hopefully this will be fixed soon, at which point you'll be able to update and get a working copy of yt.</div><div><br></div><div>Thanks for the bug report!</div><div><br></div><div>-Nathan</div></div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 17, 2014 at 6:48 AM, Wing-Kit Lee <span dir="ltr"><<a href="mailto:wklee@asiaa.sinica.edu.tw" target="_blank">wklee@asiaa.sinica.edu.tw</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"><div><span style="font-family:arial,helvetica,sans-serif"><font>Hi,<br><br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font>I am new to yt and enzo. I have been able to compile and run a few 'test' simulations in enzo. However, when I use 'yt plot xxx', it complains the following:<br>


<br></font></span><pre style="padding:0px;color:rgb(0,0,0);border-radius:0px;display:block;margin:0px;line-height:17.0001px;word-break:break-all;word-wrap:break-word;white-space:pre-wrap;border:0px none;vertical-align:baseline;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="font-family:arial,helvetica,sans-serif"><font><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)">    310</span>             <span style="color:rgb(0,100,0)">if</span> </span>active_particles<span style="color:rgb(165,42,42)">:</span><span style="color:rgb(165,42,42)"></span>
<span style="color:rgb(0,100,0)">    311</span>                 ptypes <span style="color:rgb(165,42,42)">=</span> _next_token_line<span style="color:rgb(165,42,42)">(</span><span style="color:rgb(0,0,139)">"PresentParticleTypes"</span><span style="color:rgb(165,42,42)">,</span> f<span style="color:rgb(165,42,42)">)</span><span style="color:rgb(165,42,42)"></span>
<span style="color:rgb(0,100,0)">--> 312<span style="color:rgb(165,42,42)">                 </span>counts</span> <span style="color:rgb(165,42,42)">=</span> <span style="color:rgb(165,42,42)">[</span>int<span style="color:rgb(165,42,42)">(</span>c<span style="color:rgb(165,42,42)">)</span> <span style="color:rgb(0,100,0)">for</span> c <span style="color:rgb(0,100,0)">in</span> _next_token_line<span style="color:rgb(165,42,42)">(</span><span style="color:rgb(0,0,139)">"ParticleTypeCounts"</span><span style="color:rgb(165,42,42)">,</span> f<span style="color:rgb(165,42,42)">)</span><span style="color:rgb(165,42,42)">]</span><span style="color:rgb(165,42,42)"></span>
<span style="color:rgb(0,100,0)">    313</span>                 <span style="color:rgb(0,100,0)">for</span> ptype <span style="color:rgb(0,100,0)">in</span> self<span style="color:rgb(165,42,42)">.</span>parameters<span style="color:rgb(165,42,42)">.</span>get<span style="color:rgb(165,42,42)">(</span><span style="color:rgb(0,0,139)">"AppendActiveParticleType"</span><span style="color:rgb(165,42,42)">,</span> <span style="color:rgb(165,42,42)">[</span><span style="color:rgb(165,42,42)">]</span><span style="color:rgb(165,42,42)">)</span><span style="color:rgb(165,42,42)">:</span><span style="color:rgb(165,42,42)"></span>
<span style="color:rgb(0,100,0)">    314</span>                     <span style="color:rgb(0,100,0)">if</span> ptype <span style="color:rgb(0,100,0)">in</span> ptypes<span style="color:rgb(165,42,42)">:</span><span style="color:rgb(165,42,42)"></span>

<span style="color:rgb(139,0,0)">TypeError</span>: 'NoneType' object is not iterable<br><br>------<br></font></span></pre><pre style="padding:0px;color:rgb(0,0,0);border-radius:0px;display:block;margin:0px;line-height:17.0001px;word-break:break-all;word-wrap:break-word;white-space:pre-wrap;border:0px none;vertical-align:baseline;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="font-family:arial,helvetica,sans-serif"><font>I recall it worked when I was using yt 2.x version a few months ago. The problem seems to appear for the current yt. The tests with enzo I ran were MHDCTOrszangTang in 2D, ShearingBox in 3D (there are no particles). Any clues?<br>


<br></font></span></pre><pre style="padding:0px;color:rgb(0,0,0);border-radius:0px;display:block;margin:0px;line-height:17.0001px;word-break:break-all;word-wrap:break-word;white-space:pre-wrap;border:0px none;vertical-align:baseline;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="font-family:arial,helvetica,sans-serif"><font>Cheers,<br></font></span></pre><pre style="padding:0px;color:rgb(0,0,0);border-radius:0px;display:block;margin:0px;line-height:17.0001px;word-break:break-all;word-wrap:break-word;white-space:pre-wrap;border:0px none;vertical-align:baseline;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="font-family:arial,helvetica,sans-serif"><font>Kit<br></font></span></pre><span style="font-family:arial,helvetica,sans-serif"></span></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>