<div dir="ltr">Hi Wing,<div><br></div><div>I ran into this as well.  The version number is meant to be for informational purposes only as far as Enzo is concerned, so you can change it easily. If you want a very simple perl hack to fix this, for a single data output you can do:<div>
<br></div><div>perl -p -i.bak -e "s/VersionNumber              = 2.400000/VersionNumber              = 2.000000/g" DD0637<br></div><div><br></div><div>where DD0637 is the name of the restart dump's parameter file.  If you want to loop over a bunch of directories, you can do something like this (assuming you're using the bash command line, and that both the directories and file names have the format DDNNNN):</div>
<div><br></div><div>for i in DD0???; do cd $i; perl -p -i.bak -e "s/VersionNumber              = 2.400000/VersionNumber              = 2.000000/g" $i; cd ..; done<br></div><div><br></div><div>Cheers,<br>Brian</div>
<div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 17, 2014 at 1:34 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</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">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" target="_blank">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"><div><div class="h5">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>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
<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>