Commit 2a9333ca authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Autoformat

parent daa70961
Pipeline #27930 failed with stage
in 60 minutes and 2 seconds
...@@ -52,6 +52,7 @@ def test_torch_simple(constant_h): ...@@ -52,6 +52,7 @@ def test_torch_simple(constant_h):
x, y = pystencils.fields('x,y: float32[2d]') x, y = pystencils.fields('x,y: float32[2d]')
h = pystencils.fields('h0,h1,h2,h3,h4,h5,h6,h7: float32[2d]') h = pystencils.fields('h0,h1,h2,h3,h4,h5,h6,h7: float32[2d]')
@crazy @crazy
def move(x, y): def move(x, y):
A = sympy.Matrix([[h[0].center, h[1].center, h[2].center], A = sympy.Matrix([[h[0].center, h[1].center, h[2].center],
...@@ -59,7 +60,6 @@ def test_torch_simple(constant_h): ...@@ -59,7 +60,6 @@ def test_torch_simple(constant_h):
[h[6].center, h[7].center, 1]]) [h[6].center, h[7].center, 1]])
return { return {
y.center: x.interpolated_access(ProjectiveMatrix(A) @ pystencils.x_vector(2)) y.center: x.interpolated_access(ProjectiveMatrix(A) @ pystencils.x_vector(2))
} }
if constant_h: if constant_h:
...@@ -157,7 +157,6 @@ def test_to_polar(): ...@@ -157,7 +157,6 @@ def test_to_polar():
lenna_file = join(dirname(__file__), "test_data", "lenna.png") lenna_file = join(dirname(__file__), "test_data", "lenna.png")
lenna = skimage.io.imread(lenna_file, as_gray=True).astype(np.float32) lenna = skimage.io.imread(lenna_file, as_gray=True).astype(np.float32)
hr, lr = pystencils.fields('hr, lr: float32[2d]') hr, lr = pystencils.fields('hr, lr: float32[2d]')
hr.set_coordinate_origin_to_field_center() hr.set_coordinate_origin_to_field_center()
...@@ -165,6 +164,7 @@ def test_to_polar(): ...@@ -165,6 +164,7 @@ def test_to_polar():
lr.coordinate_transform = lambda x: sympy.Matrix((x.norm(), sympy.atan2(*x) / sympy.pi * 500)) lr.coordinate_transform = lambda x: sympy.Matrix((x.norm(), sympy.atan2(*x) / sympy.pi * 500))
def test_polar_transform(): def test_polar_transform():
x, y = pystencils.fields('x, y: float32[2d]') x, y = pystencils.fields('x, y: float32[2d]')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment