Skip to content
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

Different interfaces for hist.rebin() and hist.group() #90

Closed
kpedro88 opened this issue May 29, 2019 · 2 comments · Fixed by #153
Closed

Different interfaces for hist.rebin() and hist.group() #90

kpedro88 opened this issue May 29, 2019 · 2 comments · Fixed by #153
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kpedro88
Copy link
Contributor

Signature: hfcat.rebin(old_axis, new_axis)

vs.

Signature: hfcat.group(new_axis, old_axes, mapping, overflow='none')

Since these are conceptually similar operations, ideally the order of arguments would be the same (old_axis, new_axis, ...).

@nsmith-
Copy link
Member

nsmith- commented May 30, 2019

100% agree, I was trying to pay attention to things like this but missed it. I'll see how much code it breaks before implementing, although as we're in pre-v1.0 I could in principle change it.

@lgray lgray added enhancement New feature or request good first issue Good for newcomers labels Jun 10, 2019
@andrzejnovak
Copy link
Collaborator

If this is revisited, could we also have an alternative syntax, where the axis would be created implicitly by just specifying the new binning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants