Skip to content

Comments

Raise an error if bin_edges is called for unevenly spaced centers#816

Open
rosteen wants to merge 1 commit intoastropy:mainfrom
rosteen:warn-edges
Open

Raise an error if bin_edges is called for unevenly spaced centers#816
rosteen wants to merge 1 commit intoastropy:mainfrom
rosteen:warn-edges

Conversation

@rosteen
Copy link
Contributor

@rosteen rosteen commented Apr 28, 2021

Addresses #809. I could be convinced that this should just be a warning instead of an error, but I think since the calculated bin edges don't reproduce the input centers we should error and not return them at all. See the linked issue for a little more discussion of why I didn't just implement a better edge calculation algorithm.

@pllim
Copy link
Member

pllim commented Jun 3, 2021

CI is failing and needs to be fixed.

@dhomeier
Copy link
Contributor

Probably needs to be rebased as some tests were generally failing at the time, but this test looks very unfinished!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants