<div dir="ltr">ok, final update -- I am able to do a basic volume rendering, but I need to set<div><br></div><div>no_ghost=True</div><div><br></div><div>if this is False, then there is a units error in sanitize_units_add.  Perhaps when the ghost-cells are added, that is done as a normal ndarray and not a YTarray?</div>
<div><br></div><div>Similar issues arise if I try to draw_coordinate_vectors()</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 7:26 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I made a bit more progress here, but I get an error in <div><br></div><div>amr_kdtree/amr_kdtree.py<br></div>
<div><br></div><div>in line 257, it does</div><div><br></div><div><div>        dds = grid.dds.ndarray_view()</div>
</div><div><br></div><div>but grid.dds is already an ndarray, so this should be</div><div><br></div><div><div>        dds = grid.dds</div></div><div><br></div><div>still not through the cam.snapshot() part of my script, but I got everything up to there working.</div>

<div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 4:23 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>On Fri, Mar 28, 2014 at 3:37 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 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></blockquote><div><br></div></div><div>Oh... lucky me.</div><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div></div><div class="gmail_extra">
<br><div class="gmail_quote"><div>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><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/" target="_blank">http://yt-project.org/docs/dev-3.0/</a></div>


<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><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" target="_blank">http://ytep.readthedocs.org/en/latest/YTEPs/YTEP-0003.html</a></div>


</div></div></div></blockquote><div><br></div></div><div>thanks for the list.  Maestro has it's own fun with variables (two definitions for temperature, several pressures, etc., magvel above is not simply the vector magnitude of x_vel, y_vel, z_vel, etc), so I'll pay attention to these definitions.</div>

<div>
<div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><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><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> </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><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" target="_blank">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> </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><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" target="_blank">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" target="_blank">https://bitbucket.org/yt_analysis/yt/pull-request/729/ytep-0019/diff</a><br></div><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><font color="#888888"><div><br></div><div><br></div></font></span></div></div></blockquote>

<div><br></div></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></div></div></blockquote><div><br></div></div><div>yeah, I'm happy to keep playing with this version if it helps.  The reason I updated today is because Matt told me that he had incorporated the Maestro field info that I sent him.</div>

<div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><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><div dir="ltr"><div><span><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></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></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></div><div><br><br clear="all"><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>

</div></div></div>
</blockquote></div><br><br clear="all"><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>

</div>
</div></div></blockquote></div><br><br clear="all"><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>:  631-632-8225</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>

</div>