[yt-dev] Issue #1224: test_grid_arrays_view fails on Windows (yt_analysis/yt)
John ZuHone
issues-reply at bitbucket.org
Mon May 23 19:41:55 PDT 2016
New issue 1224: test_grid_arrays_view fails on Windows
https://bitbucket.org/yt_analysis/yt/issues/1224/test_grid_arrays_view-fails-on-windows
John ZuHone:
It looks like the type conversion in `grid_container.pyx` is failing here, but I haven't the foggiest idea why:
```pycon
======================================================================
FAIL: yt.geometry.tests.test_grid_container.test_grid_arrays_view(array([[ 0.00000000e+000, 0.00000000e+000, 0.00000000e+000],
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\jzuho\Miniconda3\lib\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 296, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 787, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 713, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 77.77777777777777%)
x: array([[ 0.000000e+000, 0.000000e+000, 0.000000e+000],
[ 2.121996e-314, 4.940656e-324, 2.500000e-001],
[ 3.125000e-002, 3.125000e-002, 4.243992e-314],...
y: YTArray([[ 0. , 0. , 0. ],
[ 0.25 , 0.25 , 0.25 ],
[ 0.25 , 0.25 , 0.375 ],...
======================================================================
FAIL: yt.geometry.tests.test_grid_container.test_grid_arrays_view(array([[ 1.00000000e+000, 1.00000000e+000, 1.00000000e+000],
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\jzuho\Miniconda3\lib\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 296, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 787, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 713, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 77.77777777777777%)
x: array([[ 1.000000e+000, 1.000000e+000, 1.000000e+000],
[ 2.500000e-001, 2.500000e-001, 7.500000e-001],
[ 9.881313e-324, 2.500000e-001, 2.500000e-001],...
y: YTArray([[ 1. , 1. , 1. ],
[ 0.75 , 0.75 , 0.75 ],
[ 0.5 , 0.5 , 0.625 ],...
======================================================================
FAIL: yt.geometry.tests.test_grid_container.test_grid_arrays_view(array([[ 0, 0, 0],
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\jzuho\Miniconda3\lib\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 296, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 787, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 713, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 100.0%)
x: array([[ 0, 0, 0],
[-1247088400, 396, 8],
[ 0, 1071644672, 0],...
y: array([[16, 16, 16],
[16, 16, 16],
[16, 16, 16],...
======================================================================
FAIL: yt.geometry.tests.test_grid_container.test_grid_arrays_view(array([ 0, 1068498944, 0, 0, 0,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\jzuho\Miniconda3\lib\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 296, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 787, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Users\jzuho\Miniconda3\lib\site-packages\numpy\testing\utils.py", line 713, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 83.33333333333333%)
x: array([ 0, 1068498944, 0, 0, 0,
1071775744], dtype=int32)
y: array([0, 1, 2, 2, 3, 3])
```
Responsible: MatthewTurk
More information about the yt-dev
mailing list