From 98ad0af407300df2a060279bac3d870dfa6bbc79 Mon Sep 17 00:00:00 2001 From: Felix Patzelt Date: Sun, 24 Sep 2017 14:57:40 +0200 Subject: [PATCH] better test coverage --- colorednoise.py | 2 +- setup.py | 1 + tests/test_powerlaw_psd_gaussian.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/colorednoise.py b/colorednoise.py index 9445e3b..bfc0ba4 100644 --- a/colorednoise.py +++ b/colorednoise.py @@ -39,7 +39,7 @@ def powerlaw_psd_gaussian(exponent, samples, fmin=0): Returns ------- out : array - The samples + The samples. Examples: diff --git a/setup.py b/setup.py index 39a2828..7376049 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,7 @@ classifiers=[ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python :: 2 :: Only', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering' ], diff --git a/tests/test_powerlaw_psd_gaussian.py b/tests/test_powerlaw_psd_gaussian.py index df3ecb9..d598f66 100644 --- a/tests/test_powerlaw_psd_gaussian.py +++ b/tests/test_powerlaw_psd_gaussian.py @@ -9,5 +9,5 @@ def test_powerlaw_psd_gaussian_output_shape(self): self.assertEqual(n.shape, (16,)) def test_powerlaw_psd_gaussian_output_finite(self): - n = cn.powerlaw_psd_gaussian(1, 16) + n = cn.powerlaw_psd_gaussian(1, 16, fmin=0.1) self.assertTrue(np.isfinite(n).all())