-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create_bins_per_decade
does not include the maximum value
#187
Comments
No, I disagree. If I have a requirement to use n bins per decade, that's not approximate or negotiable. 5 bins per decade are 5 bins per decade, not 5.1 or 4.9 depending on the min and max values. It's simply a question of what requirement takes precedence. And in my opinion, a function called |
It's also documented here: Line 101 in 285bca1
|
ok, I see. Thanks. |
Ah, in the special case you give above case, it might be ok to include the endpoint though, if it fits exactly! |
Include endpoint in create_bins_per_decade if it matches the regular spacing, fixes #187
binning edges obtained using
create_bins_per_decade
does not include the maximum valueI think it would be better to implement like gammapy, what do you think?
https://docs.gammapy.org/0.20.1/_modules/gammapy/maps/axes.html#MapAxis.from_energy_bounds
The text was updated successfully, but these errors were encountered: