<div dir="ltr"><div><div><div>Hi Sam,<br><br></div>It works! I think you'd better to change documentation for this too. I found previous syntax from following link:<br><br><a href="http://yt-project.org/docs/dev-3.0/reference/api/generated/yt.visualization.volume_rendering.camera.Camera.draw_domain.html#yt.visualization.volume_rendering.camera.Camera.draw_domain">http://yt-project.org/docs/dev-3.0/reference/api/generated/yt.visualization.volume_rendering.camera.Camera.draw_domain.html#yt.visualization.volume_rendering.camera.Camera.draw_domain</a><br>
<br></div><div></div>Thanks a lot!<br><br></div>Chang-Goo<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 10:39 AM, Sam Skillman <span dir="ltr"><<a href="mailto:samskillman@gmail.com" target="_blank">samskillman@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 Chang-Goo,<div><br></div><div>I think I spotted the problem. The syntax for drawing the domain is not exactly the same as that for drawing the coordinate vectors. Instead of:</div>
<div><div>        cam.draw_coordinate_vectors(im)</div>

<div>        cam.draw_domain(im)</div><div>        im.write_png("camera_domain.png")</div></div><div> can you try</div><div><div>        cam.draw_coordinate_vectors(im)</div><div>        im = cam.draw_domain(im)</div>


<div>        im.write_png("camera_domain.png")</div></div><div><br></div><div>Sorry that this doesn't have a consistent API for the two draw functions. draw_coordinate_vectors modified the im image directly, whereas draw_domain makes a copy.  We are hoping to clean this API up in an in-progress refactor of the volume rendering module for yt. </div>


<div><br></div><div>Let us know if that does the trick.  Its seems to work for me over here on a test rendering.</div><div><br></div><div>Cheers,</div><div>Sam</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">

On Mon, Apr 14, 2014 at 9:40 PM, Sam Skillman <span dir="ltr"><<a href="mailto:samskillman@gmail.com" target="_blank">samskillman@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 Chang-Goo,<div><br></div><div>I'll try to test this out tomorrow. I'm not sure that drawing grid domains are up to snuff after the unit refactor of 3.0.  Have you modified the source code in any way?  If so, would you please paste the diff?</div>



<div><br></div><div>Thanks,</div><div>Sam</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 6:07 PM, Chang-Goo Kim <span dir="ltr"><<a href="mailto:cgkim@astro.princeton.edu" target="_blank">cgkim@astro.princeton.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">Hi John,<div><br></div><div>Yes, it's Athena vtk file. yt supports it very well.</div><div><br></div>



<div>Here's ytathena_mpi.py:</div><div><br></div><div><a href="http://paste.yt-project.org/show/4523/" target="_blank">http://paste.yt-project.org/show/4523/</a><br>
</div><div><br></div><div>Thanks,</div><div><br></div><div>Chang-Goo</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 5:01 PM, John ZuHone <span dir="ltr"><<a href="mailto:jzuhone@gmail.com" target="_blank">jzuhone@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 style="word-wrap:break-word">Hi Chang-Goo,<div><br></div><div>Also, could you elaborate a little bit on these other questions:</div>




<div><br></div><div>1) What sort of file are you trying to read? It looks like Athena. </div><div><br></div><div>2) What exactly is ytathena_mpi importing?</div><div><br></div><div>Best,</div><div><br></div><div>John</div>




<div><div><div><br><div><div>On Apr 14, 2014, at 4:54 PM, Sam Skillman <<a href="mailto:samskillman@gmail.com" target="_blank">samskillman@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">
Hi Chang-Goo,<div><br></div><div>Sorry to hear it isn't working. Could you elaborate on a few pieces:</div><div><br></div><div>1. What version of yt are you using?  From your original traceback I'm assuming a very recent version, but could you send along the results of "hg summary"?</div>






<div><br></div><div>2. Does the code fail in some new way, or do the wireframes just not show up on the image?</div><div><br></div><div>3. What is pf.domain_width for your simulation?  If it is much more than 600, its possible that you are just zoomed in so far that you can't see the domain wireframe.</div>






<div><br></div><div>Thanks,</div><div>Sam</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 14, 2014 at 9:01 AM, Chang-Goo Kim <span dir="ltr"><<a href="mailto:cgkim@astro.princeton.edu" target="_blank">cgkim@astro.princeton.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><div><div>HI all,<br><br></div>I'm a new yt-user, who are trying to produce nice volume rendering images with yt. While I was playing with volume rendering examples, I got an error message for draw_domain function.<br>







<br><a href="http://paste.yt-project.org/show/sbQxZHfKi5Wto03SlKI2/" target="_blank">http://paste.yt-project.org/show/sbQxZHfKi5Wto03SlKI2/</a><br><br></div>I talked with Matt, and he tried to solve it. Now it doesn't return error message, but I still cannot draw wireframes for domain. Here's my code.<br>







<br><a href="http://paste.yt-project.org/show/4506/" target="_blank">http://paste.yt-project.org/show/4506/</a><br><br></div>Thanks a lot!<span><font color="#888888"><br><br>Chang-Goo<br></font></span></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></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>




</blockquote></div><br></div></div></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><br></div>
</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><br></div>
</div></div></blockquote></div><br></div>
</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>