Skip to content

Commit 5d82b89

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

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

example_comparison_ansys_magpylib.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33

44
cells = 15625
55

6-
isotropic_results_ansys = np.loadtxt('tests/testdata/isotropic_results_ansys.txt', skiprows=1)
7-
isotropic_results_ansys = isotropic_results_ansys[:,3:]
8-
anisotropic_results_ansys = np.loadtxt('tests/testdata/anisotropic_results_ansys.txt', skiprows=1)
9-
anisotropic_results_ansys = anisotropic_results_ansys[:,3:]
10-
isotropic_results_magpylib = np.load('isotropic_results_magpylib_%d.npy' % cells)
11-
anisotropic_results_magpylib = np.load('anisotropic_results_magpylib_%d.npy' % cells)
6+
isotropic_results_ansys = np.loadtxt(
7+
"tests/testdata/isotropic_results_ansys.txt", skiprows=1
8+
)
9+
isotropic_results_ansys = isotropic_results_ansys[:, 3:]
10+
anisotropic_results_ansys = np.loadtxt(
11+
"tests/testdata/anisotropic_results_ansys.txt", skiprows=1
12+
)
13+
anisotropic_results_ansys = anisotropic_results_ansys[:, 3:]
14+
isotropic_results_magpylib = np.load("isotropic_results_magpylib_%d.npy" % cells)
15+
anisotropic_results_magpylib = np.load("anisotropic_results_magpylib_%d.npy" % cells)
1216

1317

1418
isotropic_results_ansys = isotropic_results_ansys.reshape((6, -1, 3))

0 commit comments

Comments
 (0)