Skip to content
Snippets Groups Projects
Commit 6e1555d1 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Remove pyconrad from a test

parent 1eac202f
No related branches found
No related tags found
No related merge requests found
...@@ -18,12 +18,6 @@ import sympy as sp ...@@ -18,12 +18,6 @@ import sympy as sp
import pystencils import pystencils
from pystencils_autodiff.transformations import add_fixed_constant_boundary_handling from pystencils_autodiff.transformations import add_fixed_constant_boundary_handling
try:
import pyconrad.autoinit
except ImportError:
import unittest.mock
pyconrad = unittest.mock.MagicMock()
@pytest.mark.parametrize('num_ghost_layers', (1, 2, 3)) @pytest.mark.parametrize('num_ghost_layers', (1, 2, 3))
def test_fixed_constant_bh(num_ghost_layers): def test_fixed_constant_bh(num_ghost_layers):
...@@ -50,12 +44,5 @@ def test_fixed_constant_bh(num_ghost_layers): ...@@ -50,12 +44,5 @@ def test_fixed_constant_bh(num_ghost_layers):
out1 = np.zeros_like(noise) out1 = np.zeros_like(noise)
out2 = np.zeros_like(noise) out2 = np.zeros_like(noise)
pyconrad.imshow(noise, "noise")
kernel(x=noise, y=out1) kernel(x=noise, y=out1)
bh_kernel(x=noise, y=out2) bh_kernel(x=noise, y=out2)
pyconrad.imshow(out1, "out1")
pyconrad.imshow(out2, "out2")
np.allclose(out1[ndim:-ndim, ndim:-ndim], out2[ndim:-ndim, ndim:-ndim])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment