<div dir="ltr">Hi All,<div><br></div><div>I'm playing around with filtering out particles from an SPH data set using the bounding box.  I have a (somewhat lengthy but not complicated) notebook that highlights some of the capabilities (and an issue that I've found) here:</div>

<div><br></div><div><a href="http://nbviewer.ipython.org/gist/dnarayanan/517b736c9bb0cd72a6fa">http://nbviewer.ipython.org/gist/dnarayanan/517b736c9bb0cd72a6fa</a><br></div><div><br></div><div>The notebook does 3 things:</div>

<div><br></div><div>1. It first loads a snapshot from a cosmological simulation, and does a projection plot.</div><div><br></div><div>2. It then sets a smaller bounding box, and attempts to zoom in on that region (centered on the max density).   This works great.</div>

<div><br></div><div>3. Perplexingly, though, when I try basically the exact same code (the section after the second image) but with a different snapshot in the same simulation, I get a particle out of bounds error.</div>
<div>
<br></div><div>One relevant clue is that this error only comes when trying to access smoothed quantities (i.e. the snippets where I try to access [as an example] the SFR gives no problems).    Probably obvious, but this is the bleeding edge yt (most recent update).</div>

<div><br></div><div>Any thoughts would definitely be welcome.</div><div><br></div><div>thanks,</div><div>desika</div></div>