janpipek / physt

Python histogram library - histograms as updateable, fully semantic objects with visualization tools. [P]ython [HYST]ograms.
MIT License
129 stars 15 forks source link

add if weights is not None in fill_n histogram1d #59

Closed marinang closed 4 years ago

marinang commented 4 years ago

Fix the raise of this error

ValueError: The truth value of an array with more than one element is ambiguous. 
Use a.any() or a.all()

when providing an array of weights to fill_n.