Skip to content

Commit

Permalink
Fix to noise test for older numpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClerx committed Oct 31, 2018
1 parent f248c48 commit cfe878b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pints/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def independent(sigma, shape):
noisy_values = values + noise.independent(5, values.shape)
"""
# Don't test sigma/shape: handled by numpy for higher-dimensions etc.!

# Don't test sigma/shape: handled by numpy for higher-dimensions etc.!
return np.random.normal(0, sigma, shape)


Expand Down
2 changes: 1 addition & 1 deletion pints/tests/test_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_independent_noise(self):
self.assertRaises(ValueError, pn.independent, -1, clean.shape)

# Shape must be a nice shape (handled by numpy)
self.assertRaises(TypeError, pn.independent, 0, 'hello')
self.assertRaises(TypeError, pn.independent, 1, 'hello')

def test_ar1(self):

Expand Down

0 comments on commit cfe878b

Please sign in to comment.