Skip to content

test_coherence_linear_dependence consistently fails #150

@yarikoptic

Description

@yarikoptic
======================================================================
FAIL: Tests that the coherence between two linearly dependent time-series
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/nitime-0.7/debian/tmp/usr/lib/python2.7/dist-packages/nitime/algorithms/tests/test_coherence.py", line 244, in test_coherence_linear_dependence
    npt.assert_array_almost_equal(c[0, 1], c_t, 2)
  File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal
    precision=decimal)
  File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 796, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not almost equal to 2 decimals

(mismatch 99.1219512195%)
 x: array([ 0.99,  1.  ,  1.  , ...,  0.81,  0.88,  0.93])
 y: array([ 1.  ,  0.99,  1.  , ...,  1.01,  0.99,  1.  ])

may be due to having numpy 1.12.0~rc2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions