<div dir="ltr">Hi Mike,<div><br></div><div>You've hit a bunch of big changes we've been making recently.  If you want to get back to the version of yt before we merged these big changes in, you'll need to update to the 'development' bookmark.  Right now you're on the 'experimental' bookmark.</div>

<div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 12:10 PM, Michael Zingale <span dir="ltr"><<a href="mailto:michael.zingale@stonybrook.edu" target="_blank">michael.zingale@stonybrook.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Is there any updated examples for using the yt 3.0 volume rendering?<div>

<br></div><div>For instance, looking at this:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/cookbook/simple_plots.html#simple-volume-rendering" target="_blank">http://yt-project.org/docs/dev/cookbook/simple_plots.html#simple-volume-rendering</a></div>

</div></blockquote><div><br></div><div>We haven't finished updating the docs yet.  In-development docs (including some out-of-date information that we need to update) are available here: <a href="http://yt-project.org/docs/dev-3.0/">http://yt-project.org/docs/dev-3.0/</a></div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<div><br></div><div>The field name is no longer simply "Density", but now, for my data, I need to use a tuple like: </div><div><br></div><div><div><div>field =  ('boxlib', 'magvel')</div></div></div>

</div></blockquote><div><br></div><div>We no longer have a 'Density' field, since this introduces ambiguities for Enzo data and to create a consistent naming scheme for fields.  The new name is 'density'. See: <a href="http://ytep.readthedocs.org/en/latest/YTEPs/YTEP-0003.html">http://ytep.readthedocs.org/en/latest/YTEPs/YTEP-0003.html</a></div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>
<br></div><div>And then when I look at the extrema, I no longer take the [0] index, as that just gives the min, but instead if I look at:</div><div><br></div></div></div></blockquote><div><br></div><div>That true, we've simplified the derived quantity API somewhat.  This fixes a long-standing issue at the cost of breaking some old user scripts.  As you can see we are planning to break backward compatibility somewhat for the final yt 3.0 release.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div></div><div>dd.quantities["Extrema"](field)<br>

</div><div><div>
<br></div><div>I get:</div><div><br></div><div>(124.858613718 dimensionless, 18061918.0546 dimensionless)</div></div></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div><div></div><div>(not sure why they are dimensionless, but that's a different problem).</div><div>
<br></div></div></div></blockquote><div><br></div><div>If you do</div><div><br></div><div>type(dd.quantities["Extrema"](field)[0])</div><div><br></div><div>you will see that it is a new type, YTQuantity, which is a new class we've defined to handle units for scalar data.  YTArray does the same thing for array data.  More detail here: <a href="http://yt-project.org/docs/dev-3.0/analyzing/units/index.html">http://yt-project.org/docs/dev-3.0/analyzing/units/index.html</a></div>

<div><br></div><div>These are 'dimensionless' because the boxlib frontend does not know what the appropriate units are for the 'magvel' field.  It may be the case that we could modify the frontend to detect the units </div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div></div><div>Finally, if I try to make a transfer function, like:</div>

<div><div><br></div><div>tf = ColorTransferFunction((mi, ma))</div></div><div><br></div><div>I get:</div><div><br></div><div>NameError: name 'ColorTransferFunction' is not defined<br></div></div></div></blockquote>

<div><br></div><div>I think this was an oversight on Matt's part.  Thanks for the report!  For now you should be able to import ColorTransferFunction from yt.visualization.volume_rendering.api, but this should be fixed soon.</div>

<div><br></div><div>The reason this happened is that we've changed the way imports work in the top-level yt namespace in the interest of yt behaving more like a 'normal' scientific python package.  More detail is available here: </div>

<div><br></div><div><a href="http://ytep.readthedocs.org/en/latest/YTEPs/YTEP-0019.html">http://ytep.readthedocs.org/en/latest/YTEPs/YTEP-0019.html</a></div><div><br></div><div>as well as in the following pull request:</div>

<div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/pull-request/729/ytep-0019/diff">https://bitbucket.org/yt_analysis/yt/pull-request/729/ytep-0019/diff</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div><div>
</div><div><br></div><div>I just synced up with the development version today.</div><div><br></div><div>Mike</div><span class=""><font color="#888888"><div><br></div><div><br></div></font></span></div></div></blockquote>

<div><br></div><div>We're working hard to update the docs and get the code into shape to release.  If you're ok with dealing with not having fully up-to-date docs, we'd really appreciate you trying out the changes to the code, letting us know what you think, and reporting any bugs you find.</div>

<div><br></div><div>That said, if you want a lower-friction option, 'downgrading' to the development bookmark should go a long way.</div><div><br></div><div>To do that, navigate to your checking of the yt mercurial repository and issue the following sequence of commands:</div>

<div><br></div><div>hg up development</div><div>python setup.py develop</div><div><br></div><div>Hope that's helpful.  Please let us know if you have any further questions or concerns.</div><div><br></div><div>-Nathan</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><span class=""><font color="#888888"><div>

</div><div><br></div><div><br></div>-- <br><div>Michael Zingale</div><div>Associate Professor</div>
<div><br></div><div>Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800</div><div><i>phone</i>:  <a href="tel:631-632-8225" value="+16316328225" target="_blank">631-632-8225</a></div><div>

<i>e-mail</i>: <a href="mailto:Michael.Zingale@stonybrook.edu" target="_blank">Michael.Zingale@stonybrook.edu</a></div>
<div><i>web</i>: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank">http://www.astro.sunysb.edu/mzingale</a></div>
</font></span></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></div></div>