<div dir="ltr">Hi all,<div><br></div><div>I am working with some Enzo data and trying to calculate the spherically averaged density contrast around each cell in yt, delta_2.</div><div>I was unable to find a function for this in yt so I wrote one but it is quite slow.</div><div><br></div><div><a href="http://paste.yt-project.org/show/6389/">http://paste.yt-project.org/show/6389/</a><br></div><div><br></div><div>I know that this is an expensive operation, but is there any faster way to do this with yt?</div><div><br></div><div>Thanks,</div><div>Joe Tomlinson</div></div>