<div dir="ltr">Great, thanks! I'll take a look at the in-development version. If you wouldn't mind pointing me to those commits, I can take a look and work on it over the holidays, perhaps?<div>-Jared</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 11, 2017 at 1:03 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"><div><div><div>Hi Jared,<br><br></div>Unfortunately right now for Gadget data you need to know that information before you load your data. Try using a very large bounding box.<br><br></div>I've fixed this behavior in an in-development version of yt which has not been upstreamed yet. The code will be part of yt 4.0 (due out sometime in 2019 at the moment) so in the future this will be easier. In this new version if there's no user-specified bounding box, we scan the file and find the min and max particle locations and use those to set the bounding box.<br><br>If you're interested in trying the new version of yt out, you'll need to build yt from source using the "sph-viz" branch on my fork of yt on github (<a href="https://github.com/ngoldbaum/yt" target="_blank">https://github.com/ngoldbaum/<wbr>yt</a>). You'll also need to build and install cykdtree (<a href="https://github.com/cykdtree/cykdtree" target="_blank">https://github.com/cykdtree/<wbr>cykdtree</a>) which has been added as a dependency of yt.<br><br></div><div>In principle it should be possible to backport this functionality to the current version of yt but it will take a bit of work. If you're interested in taking that on I can point you to the commits where I implemented the new automatic bounding box detection in the in-development version of yt.<br><br></div><div>Hope that's helpful,<br><br></div><div>Nathan<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Dec 11, 2017 at 11:52 AM, Jared Coughlin <span dir="ltr"><<a href="mailto:Jared.W.Coughlin.29@nd.edu" target="_blank">Jared.W.Coughlin.29@nd.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello! I have a gadget snapshot that was generated from a non-cosmological simulation. This causes yt to ignore the box size parameter. However, when I try to make a plot, yt generally fails because ds.domain_left_edge = ds.domain_right_edge = 0.0. This necessitates that I change those parameters manually. My question is: is there a way to get the domain bounds from the file so that I don't have to set these manually every time?<div><br></div><div>I noticed that if I get the box size wrong, yt complains about particle bounds exceeding the domain bounds, and so I looked a little bit at the code to see if I could figure out how yt was getting these numbers and see if I could just do something similar, but I haven't had a whole lot of luck. It seems that in the compute_morton function there's a pos_x.max and min function, but those are passed in _initialize_index as data having been read from an hdf5 file? </div><div><br></div><div>I'm not super sure I understand what's going on there, but if anyone has any thoughts, I'd greatly appreciate it. I basically just need the max and min particle positions along each of the x, y, and z directions, but trying ad["Coordinates"] fails unless the bounds are properly set to begin with. Thanks!<span class="m_8437915583186739227HOEnZb"><font color="#888888"><br></font></span></div><span class="m_8437915583186739227HOEnZb"><font color="#888888"><div><br></div><div>-Jared</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>