We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.7.4
$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2019 NVIDIA Corporation Built on Wed_Oct_23_19:32:27_Pacific_Daylight_Time_2019 Cuda compilation tools, release 10.2, V10.2.89
>>> cupy.__version__ '8.2.0'
======================================================================================= test session starts ======================================================================================== platform win32 -- Python 3.7.4, pytest-5.2.1, py-1.8.0, pluggy-0.13.0 rootdir: D:\xarray-spatial plugins: arraydiff-0.3, doctestplus-0.4.0, openfiles-0.4.0, remotedata-0.3.2 collected 83 items test_aspect.py ..FF [ 4%] test_bump.py . [ 6%] test_classify.py .... [ 10%] test_curvature.py .... [ 15%] test_focal.py .... [ 20%] test_hillshade.py .. [ 22%] test_multispectral.py .................... [ 46%] test_pathfinding.py . [ 48%] test_perlin.py . [ 49%] test_proximity.py ..... [ 55%] test_slope.py .FF.. [ 61%] test_terrain.py . [ 62%] test_tiles.py .... [ 67%] test_viewshed.py .... [ 72%] test_zonal.py ....................... [100%] ============================================================================================= FAILURES ============================================================================================= ______________________________________________________________________________________ test_numpy_equals_cupy ______________________________________________________________________________________ @pytest.mark.skipif(doesnt_have_cuda(), reason="CUDA Device not Available") def test_numpy_equals_cupy(): import cupy small_da = xr.DataArray(INPUT_DATA, attrs={'res': (10.0, 10.0)}) small_da_cupy = xr.DataArray(cupy.asarray(INPUT_DATA), attrs={'res': (10.0, 10.0)}) # aspect by xrspatial cpu = aspect(small_da, name='aspect_agg') > gpu = aspect(small_da_cupy, name='aspect_agg') test_aspect.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ..\aspect.py:189: in aspect out = _run_cupy(agg.data) ..\aspect.py:122: in _run_cupy _data = np.pad(data, pad_width=pad_width, mode="reflect") C:\Users\mdo\Anaconda3\lib\site-packages\numpy\lib\arraypad.py:1171: in pad narray = np.array(array) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: Implicit conversion to a NumPy array is not allowed. Please use `.get()` to construct a NumPy array explicitly. cupy\core\core.pyx:1168: TypeError ______________________________________________________________________________________ test_cupy_equals_qgis _______________________________________________________________________________________ @pytest.mark.skipif(doesnt_have_cuda(), reason="CUDA Device not Available") def test_cupy_equals_qgis(): import cupy small_da = xr.DataArray(INPUT_DATA, attrs={'res': (10.0, 10.0)}) small_da_cupy = xr.DataArray(cupy.asarray(INPUT_DATA), attrs={'res': (10.0, 10.0)}) > xrspatial_aspect = aspect(small_da_cupy, name='aspect_agg') test_aspect.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ..\aspect.py:189: in aspect out = _run_cupy(agg.data) ..\aspect.py:122: in _run_cupy _data = np.pad(data, pad_width=pad_width, mode="reflect") C:\Users\mdo\Anaconda3\lib\site-packages\numpy\lib\arraypad.py:1171: in pad narray = np.array(array) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: Implicit conversion to a NumPy array is not allowed. Please use `.get()` to construct a NumPy array explicitly. cupy\core\core.pyx:1168: TypeError ___________________________________________________________________________________ test_slope_against_qgis_gpu ____________________________________________________________________________________ @pytest.mark.skipif(doesnt_have_cuda(), reason="CUDA Device not Available") def test_slope_against_qgis_gpu(): import cupy small_da = xr.DataArray(elevation, attrs={'res': (10.0, 10.0)}) small_da_cupy = xr.DataArray(cupy.asarray(elevation), attrs={'res': (10.0, 10.0)}) > xrspatial_slope = slope(small_da_cupy, name='slope_cupy') test_slope.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ..\slope.py:176: in slope out = _run_cupy(agg.data, cellsize_x, cellsize_y) ..\slope.py:114: in _run_cupy slope_data = np.pad(data, pad_width=pad_width, mode="reflect") C:\Users\mdo\Anaconda3\lib\site-packages\numpy\lib\arraypad.py:1171: in pad narray = np.array(array) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: Implicit conversion to a NumPy array is not allowed. Please use `.get()` to construct a NumPy array explicitly. cupy\core\core.pyx:1168: TypeError ____________________________________________________________________________________ test_slope_gpu_equals_cpu _____________________________________________________________________________________ @pytest.mark.skipif(doesnt_have_cuda(), reason="CUDA Device not Available") def test_slope_gpu_equals_cpu(): import cupy small_da = xr.DataArray(elevation2, attrs={'res': (10.0, 10.0)}) cpu = slope(small_da, name='numpy_result') small_da_cupy = xr.DataArray(cupy.asarray(elevation2), attrs={'res': (10.0, 10.0)}) > gpu = slope(small_da_cupy, name='cupy_result') test_slope.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ..\slope.py:176: in slope out = _run_cupy(agg.data, cellsize_x, cellsize_y) ..\slope.py:114: in _run_cupy slope_data = np.pad(data, pad_width=pad_width, mode="reflect") C:\Users\mdo\Anaconda3\lib\site-packages\numpy\lib\arraypad.py:1171: in pad narray = np.array(array) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E TypeError: Implicit conversion to a NumPy array is not allowed. Please use `.get()` to construct a NumPy array explicitly. cupy\core\core.pyx:1168: TypeError ========================================================================================= warnings summary ========================================================================================= C:\Users\mdo\Anaconda3\lib\site-packages\win32\lib\pywintypes.py:2 C:\Users\mdo\Anaconda3\lib\site-packages\win32\lib\pywintypes.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp, sys, os C:\Users\mdo\Anaconda3\lib\site-packages\numba\cuda\envvars.py:16 C:\Users\mdo\Anaconda3\lib\site-packages\numba\cuda\envvars.py:16: NumbaDeprecationWarning: Environment variables with the 'NUMBAPRO' prefix are deprecated, found use of NUMBAPRO_NVVM=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\nvvm\bin\nvvm64_33_0.dll. For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-numbapro-environment-variables warnings.warn(errors.NumbaDeprecationWarning(msg)) C:\Users\mdo\Anaconda3\lib\site-packages\numba\cuda\envvars.py:16 C:\Users\mdo\Anaconda3\lib\site-packages\numba\cuda\envvars.py:16: NumbaDeprecationWarning: Environment variables with the 'NUMBAPRO' prefix are deprecated, found use of NUMBAPRO_LIBDEVICE=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\nvvm\libdevice. For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-numbapro-environment-variables warnings.warn(errors.NumbaDeprecationWarning(msg)) C:\Users\mdo\Anaconda3\lib\importlib\_bootstrap.py:219 C:\Users\mdo\Anaconda3\lib\importlib\_bootstrap.py:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject return f(*args, **kwds) xrspatial/tests/test_aspect.py::test_numpy_equals_qgis D:\thuydo\upwork\xarray-spatial\xrspatial\tests\test_aspect.py:53: RuntimeWarning: invalid value encountered in less_equal assert ((np.isnan(xrspatial_vals) & np.isnan(qgis_vals)) | ( xrspatial/tests/test_focal.py::test_kernel xrspatial/tests/test_focal.py::test_convolution xrspatial/tests/test_focal.py::test_hotspot D:\thuydo\upwork\xarray-spatial\xrspatial\focal.py:89: Warning: Raster distance unit not provided. Use meter as default. 'Use meter as default.', Warning) xrspatial/tests/test_focal.py::test_kernel xrspatial/tests/test_focal.py::test_convolution xrspatial/tests/test_focal.py::test_hotspot D:\thuydo\upwork\xarray-spatial\xrspatial\focal.py:51: Warning: Raster distance unit not provided. Use meter as default. 'Use meter as default.', Warning) xrspatial/tests/test_pathfinding.py::test_a_star_search xrspatial/tests/test_pathfinding.py::test_a_star_search xrspatial/tests/test_pathfinding.py::test_a_star_search xrspatial/tests/test_pathfinding.py::test_a_star_search xrspatial/tests/test_pathfinding.py::test_a_star_search xrspatial/tests/test_pathfinding.py::test_a_star_search xrspatial/tests/test_pathfinding.py::test_a_star_search D:\thuydo\upwork\xarray-spatial\xrspatial\pathfinding.py:310: Warning: End at a non crossable pixel warnings.warn('End at a non crossable pixel', Warning) xrspatial/tests/test_pathfinding.py::test_a_star_search xrspatial/tests/test_pathfinding.py::test_a_star_search D:\thuydo\upwork\xarray-spatial\xrspatial\pathfinding.py:302: Warning: Start at a non crossable pixel warnings.warn('Start at a non crossable pixel', Warning) -- Docs: https://docs.pytest.org/en/latest/warnings.html ======================================================================= 4 failed, 79 passed, 20 warnings in 80.76s (0:01:20) =======================================================================
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Python 3.7.4
The text was updated successfully, but these errors were encountered: