Skip to content

Commit

Permalink
Quickfix for test_histogram_results_1d (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau authored Apr 2, 2021
1 parent bb1fa23 commit 2b2b82e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xhistogram/test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
@pytest.mark.parametrize("axis", [1, None])
def test_histogram_results_1d(block_size, density, axis):
nrows, ncols = 5, 20
# Setting the random seed here prevents np.testing.assert_allclose
# from failing beow. We should investigate this further.
np.random.seed(2)
data = np.random.randn(nrows, ncols)
bins = np.linspace(-4, 4, 10)

Expand Down

0 comments on commit 2b2b82e

Please sign in to comment.