scikit-hep / histbook

Versatile, high-performance histogram toolkit for Numpy.
BSD 3-Clause "New" or "Revised" License
109 stars 9 forks source link

feature request: clear the histogram #13

Closed imandr closed 6 years ago

imandr commented 6 years ago

Could you please add a method to clear histogram counts ? How about a histogram book ? Thanks.

jpivarski commented 6 years ago

Now there's clear (changes Hist and Book in place) and cleared (returns a cleared copy). I also took the opportunity to add scalar multiplication, which is like a generalization of clearing (though maybe the multiply by zero case should defer to clear?).

Would it be okay if I accumulated these feature requests in the enhancements branch and only push to master and bump the version number for PyPI when there's a lot of them? Is it easy for you to check out that branch with git and python setup.py install --user instead of pip install histbook --user?

Feel free to make a lot of requests as you encounter missing features.

imandr commented 6 years ago

Yes, the enhancement branch would be fine. Thanks Jim.