<div dir="ltr">Hi Joshua,<div><br></div><div>The "Failed to split grids" are probably (maybe) okay. I haven't rendered ramses data in quite a while, but I think the kd-tree is probably just finding a corner case that I didn't have a better way to cover than just move on.</div>

<div><br></div><div>The progress bar error is a bit stranger, though I've also recently had issues with it in ipython that I don't understand. Could you paste the full traceback using <a href="http://paste.yt-project.org/">http://paste.yt-project.org/</a> ?  That will make it easier to pick a spot to place a try-except for now. </div>

<div><br></div><div>Sam</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 6:05 AM, Joshua G. Albert <span dir="ltr"><<a href="mailto:albert@strw.leidenuniv.nl" target="_blank">albert@strw.leidenuniv.nl</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Attn: Sam Skillman (Matthew thinks you might know a solution)<br>
<br>
I'm attempting to follow the Simple Volume Rendering recipe given in the cookbook (<a href="http://yt-project.org/doc/cookbook/simple_plots.html#Simple_Volume_Rendering" target="_blank">http://yt-project.org/doc/<u></u>cookbook/simple_plots.html#<u></u>Simple_Volume_Rendering</a>). I'm using Ramses simulation output and after consulting Matthew Turk it should be fine, using the bleeding edge version, which I am. My code that fails is:<br>


<br>
pf = load(header)<br>
dd = pf.h.all_data()<br>
mi,ma = dd.quantities['Extrema']('<u></u>Density')[0]<br>
tf = ColorTransferFunction((np.<u></u>log10(mi)+1,np.log10(ma)))<br>
tf.add_layers(5,w=0.02)<br>
center=pf.domain_center<br>
look = [0.0,0.0,-1.0]<br>
width = 1.0<br>
res = 512<br>
cam = pf.h.camera(center,look,width,<u></u>res,tf)<br>
cam.snapshot("%s_test_snap.<u></u>png" % pf, clip_ratio=8.0)<br>
#Something fails in the progressbar of all places!<br>
<br>
I get a series of "Failed to split grids."<br>
<br>
It fails at snapshot, and at the end of the traceback I find:<br>
<br>
/data2/albert/ramses/yt-x86_<u></u>64/src/yt-hg/yt/extern/<u></u>progressbar/widgets.pyc in update_js(self, pbar)<br>
    344             $myPB.progressbar({{value: 0, max: {pbar.maxval:d}}});<br>
    345         }}<br>
--> 346         """.format(divid=self.uuid, pbar=pbar)<br>
    347<br>
    348<br>
<br>
ValueError: Unknown format code 'd' for object of type 'float'<br>
<br>
Any idea how to solve this easily? Possibly a good idea to optionally remove the progressbar in the future?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Best Regards,<br>
<br>
Joshua G. Albert<br>
______________________________<u></u>_________________<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/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</font></span></blockquote></div><br></div>