I'm not sure, but your second expression is reducible to:
> On Feb 3, 2014, at 6:29 PM, Sam Skillman <samskillman@gmail.com> wrote:
>
> +1 on having .x be the bin centers, and .x_bins being edges. That said, what is the protocol for calculating the center of logarithmically spaced bins? Is it
> .x = (.x_bins[:1] + .x_bins[1:])/2
> or
> .x = 10**( (np.log10(.x_bins[:1]) + np.log10(.x_bins[1:]))/2 )
.x = np.sqrt(.x_bins[:-1]*.x_bins[1:])
And I think you meant that to be ":-1"
_______________________________________________
yt-dev mailing list
yt-dev@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org