Bug#921636: python-fluids: FTBFS against scipy 1.2.1

Drew Parsons dparsons at debian.org
Fri Mar 1 06:55:44 GMT 2019


Package: python-fluids
Version: 0.1.73-1
Followup-For: Bug #921636

python-fluids 0.1.73-1 continues to FTBFS against scipy 1.2.1-1exp1.

The error is the same:

tests/test_particle_size_distribution.py ..............FF........[ 67%]
=================================== FAILURES ===================================
________________________ test_PSDLognormal_ds_discrete _________________________

    def test_PSDLognormal_ds_discrete():
        # Test the cdf discrete
        dist = PSDLognormal(s=0.5, d_characteristic=5E-6)
        ds = dist.ds_discrete(d_min=1e-7, d_max=1e-6, pts=8)
        ans = dist.fractions_discrete(ds)
        fractions_expect = [2.55351295663786e-15, 3.831379657981415e-13, 3.762157252396037e-11, 2.41392961175535e-09, 1.01281244724305e-07, 2.7813750147487326e-06, 5.004382447515443e-05
, 0.00059054208024234]
>       assert_allclose(fractions_expect, ans, rtol=1e-5)
E       AssertionError: 
E       Not equal to tolerance rtol=1e-05, atol=0
E       
E       Mismatch: 12.5%
E       Max absolute difference: 5.55111512e-17
E       Max relative difference: 0.00014491
E        x: array([2.553513e-15, 3.831380e-13, 3.762157e-11, 2.413930e-09,
E              1.012812e-07, 2.781375e-06, 5.004382e-05, 5.905421e-04])
E        y: array([2.553513e-15, 3.830825e-13, 3.762163e-11, 2.413930e-09,
E              1.012812e-07, 2.781375e-06, 5.004382e-05, 5.905421e-04])

tests/test_particle_size_distribution.py:430: AssertionError
_____________________________ test_PSDLognormal_dn _____________________________

    def test_PSDLognormal_dn():
        disc = PSDLognormal(s=0.5, d_characteristic=5E-6)
    
        # Test input of 1
        ans = disc.dn(1)
        # The answer can vary quite a lot near the end, so it is safest just to
        # compare with the reverse, plugging it back to cdf
        assert_allclose(disc.cdf(ans), 1, rtol=1E-12)
    #    assert_allclose(ans, 0.0002964902595794474)
    
        # Test zero input
        assert_allclose(disc.dn(0), 0)
    
        # Test 50% input
        ans = disc.dn(.5)
        assert_allclose(ans,  5.0e-06, rtol=1E-6)
    
        with pytest.raises(Exception):
            disc.dn(1.5)
        with pytest.raises(Exception):
            disc.dn(-.5)
    
        # Other orders of n - there is no comparison data for this yet!!
        assert_allclose(disc.pdf(1E-5), disc.pdf(1E-5, 3))
        assert_allclose(disc.pdf(1E-5, 2), 13468.122877854335)
        assert_allclose(disc.pdf(1E-5, 1), 4628.2482296943508)
        assert_allclose(disc.pdf(1E-5, 0), 1238.6613794833427)
    
        # Some really large s tests - found some issues with this
        dist = PSDLognormal(s=4, d_characteristic=5E-6)
>       assert_allclose(dist.dn(1e-15), 8.220922763476676e-20, rtol=1e-3)
E       AssertionError: 
E       Not equal to tolerance rtol=0.001, atol=0
E       
E       Mismatch: 100%
E       Max absolute difference: 1.08103573e-21
E       Max relative difference: 0.01314981
E        x: array(8.112819e-20)
E        y: array(8.220923e-20)

tests/test_particle_size_distribution.py:463: AssertionError
=============================== warnings summary ===============================
.pybuild/cpython2_2.7_fluids/build/tests/test_jet_pump.py::test_liquid_jet_pump_examples_round_robin
  /usr/lib/python2.7/dist-packages/scipy/optimize/nonlin.py:1040: RuntimeWarning: invalid value encountered in true_divide
    d = v / df_norm**2
  /usr/lib/python2.7/dist-packages/scipy/optimize/nonlin.py:999: RuntimeWarning: divide by zero encountered in true_divide
    d = v / vdot(df, v)
  /usr/lib/python2.7/dist-packages/scipy/optimize/nonlin.py:774: RuntimeWarning: invalid value encountered in multiply
    self.collapsed += c[:,None] * d[None,:].conj()
  /usr/lib/python2.7/dist-packages/scipy/optimize/nonlin.py:999: RuntimeWarning: invalid value encountered in true_divide
    d = v / vdot(df, v)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
======= 2 failed, 314 passed, 26 deselected, 4 warnings in 12.56 seconds =======





-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-3-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python-fluids depends on:
ii  python             2.7.15-4
ii  python-fuzzywuzzy  0.17.0-1
ii  python-ipython     5.8.0-1
ii  python-pandas      0.23.3-1
ii  python-pint        0.9-1
ii  python-scipy       1.2.1-1exp1
ii  python-sympy       1.3-2

python-fluids recommends no packages.

Versions of packages python-fluids suggests:
ii  python-fluids-doc  0.1.73-1

-- no debconf information



More information about the debian-science-maintainers mailing list