diff --git a/.travis.yml b/.travis.yml index 9ea6bb4..8211ee8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,8 @@ before_install: - sudo apt-get install gfortran # Install packages install: - - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy pytest matplotlib nose pytest-pep8 pytest-cov mpmath pil + - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy pytest matplotlib nose pytest-pep8 pytest-cov mpmath + - pip install pil - pip install numdifftools - pip install coveralls - pip install codecov diff --git a/wafo/integrate.py b/wafo/integrate.py index ccb9538..2c2b3ef 100644 --- a/wafo/integrate.py +++ b/wafo/integrate.py @@ -156,8 +156,9 @@ def romberg(fun, a, b, releps=1e-3, abseps=1e-3): ------- >>> import numpy as np >>> [q,err] = romberg(np.sqrt,0,10,0,1e-4) - >>> np.allclose([q,err], - ... [ 21.08185107, 6.61635466e-05]) + >>> np.allclose(q, 21.08185107) + True + >>> err < 1e-4 True ''' h = b - a