Replace definition of test_docstrings with an import from wafo.testing.

master
Per A Brodtkorb 8 years ago
parent 65bfb085d3
commit eae62be957

@ -3126,13 +3126,6 @@ def fourier(data, t=None, period=None, m=None, n=None, method='trapz'):
return a, b
def test_docstrings():
# np.set_printoptions(precision=6)
import doctest
print('Testing docstrings in %s' % __file__)
doctest.testmod(optionflags=doctest.NORMALIZE_WHITESPACE |
doctest.ELLIPSIS)
if __name__ == "__main__":
test_docstrings()
from wafo.testing import test_docstrings
test_docstrings(__file__)

@ -926,7 +926,8 @@ class Kalman(object):
def reset(self):
self._filter = self._filter_first
def _none_or_atleast_2d(self, a):
@staticmethod
def _none_or_atleast_2d(a):
if a is not None:
return np.atleast_2d(a)
return a

Loading…
Cancel
Save