Hi JC,<br><br>This was my suspicion.  Matt and others have been working hard to fix up the field system in YT to deal problems like this.  Since different versions of enzo use TotalEnergy and Total_Energy, it has been difficult to make a lasting solution to this.  I think something is probably coming very soon.<br>
<br>In the mean time, I can tell you the brute force way to fix this, although others should please chime in if there is something simpler that can be done.<br>Go into your yt installation, and edit the file: yt/frontends/enzo/fields.py<br>
and change the definition of ThermalEnergy (roughly line 128) to use the Total_Energy field instead of TotalEnergy.  That will do it.<br><br>I am normally not in favor of solutions that require editing the source.  I'll reiterate that people are working to provide a permanent solution to this problem and that it shouldn't be too far off.  If someone else has a more elegant solution, then please speak up.<br>
<br>Britton<br><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 8:14 PM, Jean-Claude Passy <span dir="ltr"><<a href="mailto:jcpassy@gmail.com">jcpassy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi Britton,<div class="im"><br>
    <blockquote type="cite">That's actually very helpful to know you're using
      Zeus.  With Zeus, the Gas_Energy field will not exist.  There
      should only be the ThermalEnergy field.  </blockquote></div>
    Oh that's right, I forgot about that.<div class="im"><br>
    <blockquote type="cite">An issue that keeps popping up is that some Enzo
      simulations use Total_Energy instead of TotalEnergy, or the other
      way around.  The definition of ThermalEnergy calls for using
      TotalEnergy when the simulation used Zeus.  Can you try accessing
      the TotalEnergy field, explicitly without the underscore in the
      name?<br>
    </blockquote></div>
    You are right, I can't access 'TotalEnergy'.<br><font color="#888888">
    <br>
    JC</font><div class="im"><br>
    <blockquote type="cite"><br>
      <div class="gmail_quote">On Mon, Jun 27, 2011 at 6:35 PM,
        Jean-Claude Passy <span dir="ltr"><<a href="mailto:jcpassy@gmail.com" target="_blank">jcpassy@gmail.com</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
          <div bgcolor="#ffffff" text="#000000"> Hi Britton,<br>
            <br>
            'Total_Energy' works fine but 'Gas_Energy' and
            'ThermalEnergy' do not and lead to the same error.<br>
            I don't know if it can be of any use but I am running with
            the Zeus solver.<br>
            <br>
            Thanks,<br>
            <font color="#888888"> <br>
              JC</font>
            <div>
              <div><br>
                <br>
                On 27/06/11 12:23, Britton Smith wrote:
                <blockquote type="cite">Hi JC,<br>
                  <br>
                  It looks like the problem is coming up when the
                  Pressure field asks for the ThermalEnergy field.  If
                  you try region['ThermalEnergy'], does that work?  If
                  not, please also try region['TotalEnergy'] and
                  region['GasEnergy'].<br>
                  <br>
                  Britton<br>
                  <br>
                  <div class="gmail_quote">On Mon, Jun 27, 2011 at 6:19
                    PM, Jean-Claude Passy <span dir="ltr"><<a href="mailto:jcpassy@gmail.com" target="_blank">jcpassy@gmail.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
                      <div bgcolor="#ffffff" text="#000000"> Hi all,<br>
                        <br>
                        I must be doing something silly because I get a
                        weird error when trying to access the 'Pressure'
                        field of a region:<br>
                        <br>
                        <address>---------------------------------</address>
                        <address>TypeError: unsupported operand type(s)
                          for *=: 'NoneType' and 'float'</address>
                        ---------------------------------<br>
                        <br>
                        It works fine with 'Density', 'x-velocity', 'x',
                        ... I have pasted the complete output error here
                        <a href="http://paste.enzotools.org/show/7up5l2Q3Rc8nnLZA3VKu" target="_blank">http://paste.enzotools.org/show/7up5l2Q3Rc8nnLZA3VKu</a><br>
                        Has anyone ever encountered that ?<br>
                        <br>
                        Thanks a lot,<br>
                        <font color="#888888"> <br>
                          JC<br>
                        </font><br>
                        <br>
                        PS: I really like the new home page of the yt
                        website. Congrats !<br>
                      </div>
                      <br>
                      _______________________________________________<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>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </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>