Skip to content

Commit e4321bb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d1e788e commit e4321bb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_isotropic_anisotropic.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ def test_negative_susceptibility():
4848

4949
cells = 1000 # should be >=1000, otherwise discretization error too large
5050

51-
magnet = magpy.magnet.Cuboid(dimension=(1e-3, 1e-3, 1e-3), polarization=(0, 0, -0.1))
51+
magnet = magpy.magnet.Cuboid(
52+
dimension=(1e-3, 1e-3, 1e-3), polarization=(0, 0, -0.1)
53+
)
5254
grid = np.loadtxt("tests/testdata/grid_points.pts")
53-
field_ansys = np.loadtxt("tests/testdata/negative_susceptibility_ansys.txt", skiprows=1)
55+
field_ansys = np.loadtxt(
56+
"tests/testdata/negative_susceptibility_ansys.txt", skiprows=1
57+
)
5458
field_ansys = field_ansys[:, 3:]
5559

5660
# isotropic
@@ -61,4 +65,4 @@ def test_negative_susceptibility():
6165

6266
field_magpylib = magnet_meshed.getB(grid)
6367

64-
np.testing.assert_allclose(field_ansys, field_magpylib, rtol=0, atol=0.0065)
68+
np.testing.assert_allclose(field_ansys, field_magpylib, rtol=0, atol=0.0065)

0 commit comments

Comments
 (0)