[Debian-med-packaging] Bug#1082367: FTBFS: test_detect_lines_2dmode: AssertionError: Inconsistent results

Stefano Rivera stefanor at debian.org
Fri Sep 20 12:20:58 BST 2024


Source: nitime
Version: 0.10.2-2
Severity: serious
Tags: ftbfs
Justification: FTBFS

Dear maintainer,

During a test rebuild, nitime failed to rebuild.

-------------------------------------------------------------------------------
[...]
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest 
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build
configfile: pyproject.toml
plugins: typeguard-4.3.0
collected 124 items

nitime/algorithms/tests/test_autoregressive.py .....                     [  4%]
nitime/algorithms/tests/test_coherence.py ..........s....                [ 16%]
nitime/algorithms/tests/test_correlation.py .                            [ 16%]
nitime/algorithms/tests/test_entropy.py .....                            [ 20%]
nitime/algorithms/tests/test_event_related.py .                          [ 21%]
nitime/algorithms/tests/test_spectral.py ................                [ 34%]
nitime/analysis/tests/test_base.py .                                     [ 35%]
nitime/analysis/tests/test_coherence.py ......                           [ 40%]
nitime/analysis/tests/test_correlation.py .                              [ 41%]
nitime/analysis/tests/test_granger.py ..                                 [ 42%]
nitime/analysis/tests/test_snr.py .                                      [ 43%]
nitime/fmri/tests/test_io.py .                                           [ 44%]
nitime/tests/test_algorithms.py ........                                 [ 50%]
nitime/tests/test_analysis.py ........                                   [ 57%]
nitime/tests/test_descriptors.py .                                       [ 58%]
nitime/tests/test_lazy.py ..                                             [ 59%]
nitime/tests/test_timeseries.py ....................................     [ 88%]
nitime/tests/test_utils.py ..........F                                   [ 97%]
nitime/tests/test_viz.py ...                                             [100%]

=================================== FAILURES ===================================
___________________________ test_detect_lines_2dmode ___________________________

    def test_detect_lines_2dmode():
        """
        Test multi-sequence operation
        """
    
        N = 1000
    
        sig = np.cos( 2*np.pi*np.arange(N) * 20./N ) + np.random.randn(N) * .01
    
        sig2d = np.row_stack( (sig, sig, sig) )
    
        lines = utils.detect_lines(sig2d, (4, 8), low_bias=True, NFFT=2**12)
    
        npt.assert_(len(lines)==3, 'Detect lines failed multi-sequence mode')
    
        consistent1 = (lines[0][0] == lines[1][0]).all() and \
          (lines[1][0] == lines[2][0]).all()
        consistent2 = (lines[0][1] == lines[1][1]).all() and \
          (lines[1][1] == lines[2][1]).all()
    
>       npt.assert_(consistent1 and consistent2, 'Inconsistent results')
E       AssertionError: Inconsistent results

nitime/tests/test_utils.py:304: AssertionError
=============================== warnings summary ===============================
nitime/algorithms/event_related.py:13
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/algorithms/event_related.py:13: SyntaxWarning: invalid escape sequence '\h'
    """

nitime/analysis/tests/test_coherence.py::test_CoherenceAnalyzer
nitime/analysis/tests/test_coherence.py::test_SparseCoherenceAnalyzer
nitime/analysis/tests/test_coherence.py::test_SeedCoherenceAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/analysis/coherence.py:200: RuntimeWarning: invalid value encountered in divide
    delay[i, j] = this_phase / (2 * np.pi * self.frequencies)

nitime/analysis/tests/test_coherence.py::test_CoherenceAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/analysis/coherence.py:200: RuntimeWarning: divide by zero encountered in divide
    delay[i, j] = this_phase / (2 * np.pi * self.frequencies)

nitime/analysis/tests/test_coherence.py::test_CoherenceAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/algorithms/cohere.py:699: RuntimeWarning: divide by zero encountered in divide
    return (((np.abs(Rxy - Rxr * Rry)) ** 2) /

nitime/analysis/tests/test_coherence.py::test_CoherenceAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/algorithms/cohere.py:699: RuntimeWarning: invalid value encountered in divide
    return (((np.abs(Rxy - Rxr * Rry)) ** 2) /

nitime/analysis/tests/test_coherence.py::test_SparseCoherenceAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/analysis/coherence.py:523: RuntimeWarning: invalid value encountered in divide
    return self.relative_phases / (2 * np.pi * self.frequencies)

nitime/analysis/tests/test_coherence.py::test_SeedCoherenceAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/analysis/coherence.py:730: RuntimeWarning: invalid value encountered in divide
    return self.relative_phases / (2 * np.pi * self.frequencies)

nitime/analysis/tests/test_coherence.py::test_SeedCoherenceAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/analysis/coherence.py:94: RuntimeWarning: In nitime.analysis, the provided input time-series is shorter than the requested NFFT + n_overlap. All coherence values will be set to 1.
    warnings.warn(e_s, RuntimeWarning)

nitime/tests/test_analysis.py::test_MorletWaveletAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/algorithms/wavelet.py:77: RuntimeWarning: divide by zero encountered in log
    wf = (2 * np.exp(-(np.log(f) - np.log(f0)) ** 2 / (2 * sfl ** 2)) *

nitime/tests/test_analysis.py::test_MorletWaveletAnalyzer
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/nitime/algorithms/wavelet.py:77: RuntimeWarning: invalid value encountered in log
    wf = (2 * np.exp(-(np.log(f) - np.log(f0)) ** 2 / (2 * sfl ** 2)) *

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED nitime/tests/test_utils.py::test_detect_lines_2dmode - AssertionError:...
============ 1 failed, 122 passed, 1 skipped, 12 warnings in 29.65s ============
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest 
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12 returned exit code 13
make: *** [debian/rules:16: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-19T22:05:12Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/799381/

About the archive rebuild: The build was made on debusine.debian.net,
on arm64 using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/38947/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,

Stefano



More information about the Debian-med-packaging mailing list