Skip to content

Commit

Permalink
add test for the problem cited in 394
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Dec 24, 2020
1 parent c3789b0 commit 1223968
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_hist_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,7 @@ def test_issue_333():
axis = hist.Bin("channel", "Channel b1", 50, 0, 2000)
temp = np.arange(0, 2000, 40, dtype=np.int16)
assert np.all(axis.index(temp) == np.arange(50) + 1)

def test_issue_394():
dummy = hist.Hist("Dummy" , hist.Cat("sample", "sample"), hist.Bin("dummy", "Number of events", 1, 0, 1))
dummy.fill(sample="test", dummy=1, weight=0.5)

0 comments on commit 1223968

Please sign in to comment.