From 3d71798710826dd95fa7d2d6fc927bf5df43bdd7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 6 May 2023 11:56:01 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/python/test_offset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/python/test_offset.py b/tests/python/test_offset.py index f59f815d2d0b1..93dc30d52c90b 100644 --- a/tests/python/test_offset.py +++ b/tests/python/test_offset.py @@ -149,14 +149,14 @@ def test_offset_must_throw_matrix(): @test_utils.test(arch=get_host_arch_list()) def test_field_offset_print(): - val = ti.field(dtype=ti.f32, shape=(3,3), offset=(-1, -1)) + val = ti.field(dtype=ti.f32, shape=(3, 3), offset=(-1, -1)) val.fill(1.0) print(val) @test_utils.test(arch=get_host_arch_list()) def test_field_offset_to_numpy(): - shape = (3,3) - val = ti.field(dtype=ti.f32, shape=shape, offset=(-1, -1)) + shape = (3, 3) + val = ti.field(dtype=ti.f32, shape=shape, offset=(-1, -1)) val.fill(1.0) assert np.allclose(val.to_numpy(), np.ones(shape, dtype=np.float32))