From b7ce91334e730e9152b1602ccb7637dff6465a7a Mon Sep 17 00:00:00 2001 From: pbrod Date: Fri, 27 May 2016 12:41:57 +0200 Subject: [PATCH] Small updates --- .travis.yml | 3 ++- wafo/integrate.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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