Skip to content

Doctest failures in nibabel/affines.py on 32-bit python 3.2 #151

@matthew-brett

Description

@matthew-brett

See : http://nipy.bic.berkeley.edu/builders/nibabel-bdist32-32/builds/0/steps/shell_4/logs/stdio

Failure:

======================================================================
FAIL: Doctest: nibabel.affines.apply_affine
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python32\Lib\doctest.py", line 2153, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for nibabel.affines.apply_affine
  File "C:\buildslaves\xp-mini\nibabel-bdist32-32\build\venv\lib\site-packages\nibabel-1.4.0dev-py3.2-win32.egg\nibabel\affines.py", line 9, in apply_affine

----------------------------------------------------------------------
File "C:\buildslaves\xp-mini\nibabel-bdist32-32\build\venv\lib\site-packages\nibabel-1.4.0dev-py3.2-win32.egg\nibabel\affines.py", line 44, in nibabel.affines.apply_affine
Failed example:
    apply_affine(aff, pts)
Expected:
    array([[14, 14, 24],
           [16, 17, 28],
           [20, 23, 36],
           [24, 29, 44]])
Got:
    array([[14, 14, 24],
           [16, 17, 28],
           [20, 23, 36],
           [24, 29, 44]], dtype=int32)
----------------------------------------------------------------------
File "C:\buildslaves\xp-mini\nibabel-bdist32-32\build\venv\lib\site-packages\nibabel-1.4.0dev-py3.2-win32.egg\nibabel\affines.py", line 52, in nibabel.affines.apply_affine
Failed example:
    (np.dot(aff[:3,:3], pts.T) + aff[:3,3:4]).T
Expected:
    array([[14, 14, 24],
           [16, 17, 28],
           [20, 23, 36],
           [24, 29, 44]])
Got:
    array([[14, 14, 24],
           [16, 17, 28],
           [20, 23, 36],
           [24, 29, 44]], dtype=int32)
----------------------------------------------------------------------
File "C:\buildslaves\xp-mini\nibabel-bdist32-32\build\venv\lib\site-packages\nibabel-1.4.0dev-py3.2-win32.egg\nibabel\affines.py", line 61, in nibabel.affines.apply_affine
Failed example:
    apply_affine(aff, pts)
Expected:
    array([[[14, 14, 24],
            [16, 17, 28]],
    
           [[20, 23, 36],
            [24, 29, 44]]])
Got:
    array([[[14, 14, 24],
            [16, 17, 28]],
    
           [[20, 23, 36],
            [24, 29, 44]]], dtype=int32)


----------------------------------------------------------------------
Ran 6303 tests in 29.860s

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