<meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi Mike,<div><br></div><div>After talking off list, I've realized that this was due to my failure to make sure that the renderer works on a single grid dataset.  This should be fixed in <span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">222589d1ed61.  Let me know if that doesn't work.  Also just to note here that parallelization of a single grid dataset is not currently supported because we don't break up a single grid into multiple bricks.  If anyone would really like to see this, please email me off list and we can put it in the new feature requests.</span></div>

<div><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">I'm also going to note here that I've been having issues with parallel analysis in general with the new config file stuff so those of you doing that may want to hold out on updating the 'yt' branch for a few updates.  I'll bring it up again on a new thread.</span></div>

<div><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Best and sorry for the trouble,</span></div>

<div><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Sam</span></div></span><br><div class="gmail_quote">On Tue, Nov 23, 2010 at 1:04 PM, Mike Butler <span dir="ltr"><<a href="mailto:butler85@astro.ufl.edu">butler85@astro.ufl.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Britton+everyone,<br>
<br>
I've been trying to make a similar movie/image of my data and am running<br>
into a problem.  I used the basic script here<br>
<a href="http://paste.enzotools.org/show/1367/" target="_blank">http://paste.enzotools.org/show/1367/</a>  mentioned earlier in this thread,<br>
and it works up until I get to the cam.snapshot line, where I receive the<br>
error at the end of the email.<br>
<br>
Here is my yt instinfo in case it matters:<br>
<br>
The current version of the code is:<br>
<br>
---<br>
9ee32ec8db42 (yt) tip<br>
<br>
<br>
Any ideas?  Thanks,<br>
<br>
-Mike<br>
<br>
In [15]: image=cam.snapshot(fn='my_rendering.png')<br>
Field table 0 corresponds to 0 (Weighted with  -1 )<br>
Field table 1 corresponds to 0 (Weighted with  -1 )<br>
Field table 2 corresponds to 0 (Weighted with  -1 )<br>
Field table 3 corresponds to 0 (Weighted with  -1 )<br>
Channel 0 corresponds to 0<br>
Channel 1 corresponds to 1<br>
Channel 2 corresponds to 2<br>
Channel 3 corresponds to 4<br>
Channel 4 corresponds to 4<br>
Channel 5 corresponds to 4<br>
yt         INFO       2010-11-23 15:01:48,336 About to cast<br>
---------------------------------------------------------------------------:--<br>
KeyError                                  Traceback (most recent call last)<br>
<br>
/home/butler85/yt-x86_64/src/yt-hg/scripts/iyt in <module>()<br>
----> 1<br>
      2<br>
      3<br>
      4<br>
      5<br>
<br>
/home/butler85/yt-x86_64/src/yt-hg/yt/visualization/volume_rendering/camera.pyc<br>
in snapshot(self, fn)<br>
    328             self.volume.reset_cast()<br>
    329             image = self.volume.kd_ray_cast(image, tfp, vector_plane,<br>
--> 330                                             self.back_center,<br>
self.front_center)<br>
    331         else:<br>
    332             pbar = get_pbar("Ray casting",<br>
<br>
/home/butler85/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.pyc<br>
in kd_ray_cast(self, image, tfp, vector_plane, back_center, front_center)<br>
    819             pbar = get_pbar("Ray casting",self.total_cost)<br>
    820             total_cells = 0<br>
--> 821             for brick in self.traverse(back_center, front_center,<br>
start_id):<br>
    822                 brick['brick'].cast_plane(tfp, vector_plane)<br>
    823                 total_cells += brick['cost']<br>
<br>
/home/butler85/yt-x86_64/src/yt-hg/yt/utilities/amr_kdtree/amr_kdtree.pyc<br>
in traverse(self, back_center, front_center, start_id)<br>
    698         while(True):<br>
    699<br>
--> 700             current_node = tree[current_id]<br>
    701<br>
    702             if head_node['cast_done'] is 1:<br>
<br>
KeyError: -1<br>
<div class="im"><br>
<br>
> Pardon my insanity, everyone.  I just uploaded a slightly better version<br>
> of<br>
> this movie to vimeo.  It's here:<br>
> <a href="http://vimeo.com/17100442" target="_blank">http://vimeo.com/17100442</a><br>
> You can get it here as well:<br>
> <a href="http://www.pa.msu.edu/people/britton/whim_movies/evolve_assemble.mp4" target="_blank">http://www.pa.msu.edu/people/britton/whim_movies/evolve_assemble.mp4</a><br>
> or here for a higher resolution version:<br>
</div>> <a href="http://www.pa.msu.edu/people/britton/whim_movies/evolve_assemble_hd.mp4" target="_blank">http://www.pa.msu.edu/people/britton/whim_movies/evolve_assemble_hd.mp4</a><<a href="http://www.pa.msu.edu/people/britton/whim_movies/evolve_assemble.mp4" target="_blank">http://www.pa.msu.edu/people/britton/whim_movies/evolve_assemble.mp4</a>><br>


<div><div></div><div class="h5">><br>
> Britton<br>
><br>
> On Mon, Nov 22, 2010 at 4:18 PM, Britton Smith<br>
> <<a href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>>wrote:<br>
><br>
>> Hi again everyone,<br>
>><br>
>> For those who are interested, I just finished the final version of the<br>
>> movie I referred to in my post to this thread.  I have uploaded it to<br>
>> the yt<br>
>> group on vimeo, and it will be available shortly here:<br>
>> <a href="http://vimeo.com/groups/ytgallery/videos/17095494" target="_blank">http://vimeo.com/groups/ytgallery/videos/17095494</a><br>
>> If you can't wait, I put it here as well:<br>
>> <a href="http://www.pa.msu.edu/people/britton/whim_movies/evolve_assemble.mp4" target="_blank">http://www.pa.msu.edu/people/britton/whim_movies/evolve_assemble.mp4</a><br>
>><br>
>> Thanks again to Matt and Sam for making this whole thing possible.<br>
>><br>
>> Britton<br>
>><br>
>><br>
>> On Fri, Nov 19, 2010 at 11:27 AM, Britton Smith<br>
>> <<a href="mailto:brittonsmith@gmail.com">brittonsmith@gmail.com</a>>wrote:<br>
>><br>
>>> Hi all,<br>
>>><br>
>>> I recently did some volume renders of a 50 Mpc box unigrid simulation<br>
>>> with<br>
>>> 1024^3 grid cells on kraken.  I used exactly 64 cores and did not have<br>
>>> to<br>
>>> use less than the full number of cores available per node.  I was<br>
>>> making<br>
>>> 1024^2 images that took roughly between 5-10 seconds to render.  I<br>
>>> tried<br>
>>> some 2048 that took around 30-40 seconds.  I was rendering baryon<br>
>>> overdensity with a transfer function that had 2000 narrow gaussians.<br>
>>> The<br>
>>> number was high because I am combining this with a movie in which I<br>
>>> render<br>
>>> only one of those guassians at a time and build the box up from low<br>
>>> overdensity up to high.  I didn't go to lower number of processors, so<br>
>>> I'm<br>
>>> not exactly sure at what point this would have run out of ram.  I<br>
>>> consider<br>
>>> this an overwhelming success.  I've attached some sample images, one<br>
>>> with<br>
>>> the full transfer function and a sample frame from the movie where I do<br>
>>> them<br>
>>> one at a time while spinning.  Very very nice job!<br>
>>><br>
>>> Britton<br>
>>><br>
>>><br>
>>> On Wed, Nov 10, 2010 at 11:46 AM, Matthew Turk<br>
>>> <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>>wrote:<br>
>>><br>
>>>> Hi Sam,<br>
>>>><br>
>>>> Great work!  I'm really happy to see this make it into the primary<br>
>>>> trunk.<br>
>>>><br>
>>>> I'd like to encourage people to try this out, particularly on large<br>
>>>> datasets, and write to the list or Sam if you run into problems.  This<br>
>>>> is a big increase in functionality, and everyone wants to make sure it<br>
>>>> works out alright.<br>
>>>><br>
>>>> I've been using the volume rendering capabilities of yt quite<br>
>>>> extensively, in kind of an unconventional way, to calculate off-axis<br>
>>>> average values, and I'm very excited about the performance<br>
>>>> improvements that this new subsystem will bring.<br>
>>>><br>
>>>> Congrats, Sam!<br>
>>>><br>
>>>> -Matt<br>
>>>><br>
>>>> On Tue, Nov 9, 2010 at 5:12 PM, Sam Skillman <<a href="mailto:samskillman@gmail.com">samskillman@gmail.com</a>><br>
>>>> wrote:<br>
>>>> > Hi all,<br>
>>>> > I just wanted to announce that the new kd-Tree rendering framework<br>
>>>> is<br>
>>>> now in<br>
>>>> > the 'yt' branch of the repository.  There are a couple things I<br>
>>>> wanted<br>
>>>> to<br>
>>>> > point to if you are interested.<br>
>>>> > The changeset itself:<br>
>>>> > <a href="http://yt.enzotools.org/changeset/c7947fef16ac/" target="_blank">http://yt.enzotools.org/changeset/c7947fef16ac/</a><br>
>>>> > A post on <a href="http://blog.enzotools.org" target="_blank">blog.enzotools.org</a> highlighting some recent successes:<br>
>>>> > <a href="http://blog.enzotools.org/amr-kd-tree-rendering-added-to-yt" target="_blank">http://blog.enzotools.org/amr-kd-tree-rendering-added-to-yt</a><br>
>>>> > A simple script, where you should just have to change the parameter<br>
>>>> file<br>
>>>> > name:<br>
>>>> > <a href="http://paste.enzotools.org/show/1367/" target="_blank">http://paste.enzotools.org/show/1367/</a><br>
>>>> > A more advanced script that exposes a few new options:<br>
>>>> > <a href="http://paste.enzotools.org/show/1368/" target="_blank">http://paste.enzotools.org/show/1368/</a><br>
>>>> > Both of these scripts should be able to be run in parallel (as long<br>
>>>> as<br>
>>>> N is<br>
>>>> > a power of 2 for now) transparently as:<br>
>>>> > mpirun -np N python script.py --parallel<br>
>>>> > Parallel performance will depend on the structure of your data, but<br>
>>>> the<br>
>>>> docs<br>
>>>> > for the Camera object have some suggestions.<br>
>>>> > If you find any problems or have any thoughts, let me know!<br>
>>>> > Best,<br>
>>>> > Sam<br>
>>>> ><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>
>>>> ><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>
>>><br>
>>><br>
>><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>
<br>
<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>
</div></div></blockquote></div><br>