<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Dear yt-users,<div>I was trying to calculate only the total mass of cold gas(<1e4.5) within a sphere and I tried the following script:</div><div><br></div><div>ds=yt.load('RedshiftOutputxxxx')</div><div>sp = ds.sphere(center,radius)</div><div><b>spcut = sp.cut_region(["obj['temperature']<1e4.5"])</b></div><div><b>spcut.quantities.total_mass()</b></div><div><b><br></b></div><div>But  I got an error that says:</div><div>







<p class=""><span class="">yt.utilities.exceptions.YTMixedCutRegion: Can't mix particle/discrete and fluid/mesh conditions or </span></p><p class="">quantities.  Field: ('all', 'particle_mass') and Conditions specified:</p>
<p class=""><span class="">            obj['temperature']<1e4.5</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">Does anyone know how to fix it?</span></p><p class=""><span class="">Thanks,</span></p><p class=""><span class="">Jingjing</span></p>-- <br><div class="gmail_signature"><div dir="ltr"><pre>Jingjing Chen [ <a href="mailto:chenjj235@gmail.com" target="_blank">chenjj235@gmail.com</a> ]
Department of Astronomy
Columbia University
550 West 120th Street
New York, New York 10027<br>Cell Phone: +1(347)5746709<br></pre></div></div>
</div></div>