Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 27, 2024
1 parent 668f955 commit 5d82b89
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions example_comparison_ansys_magpylib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@

cells = 15625

isotropic_results_ansys = np.loadtxt('tests/testdata/isotropic_results_ansys.txt', skiprows=1)
isotropic_results_ansys = isotropic_results_ansys[:,3:]
anisotropic_results_ansys = np.loadtxt('tests/testdata/anisotropic_results_ansys.txt', skiprows=1)
anisotropic_results_ansys = anisotropic_results_ansys[:,3:]
isotropic_results_magpylib = np.load('isotropic_results_magpylib_%d.npy' % cells)
anisotropic_results_magpylib = np.load('anisotropic_results_magpylib_%d.npy' % cells)
isotropic_results_ansys = np.loadtxt(
"tests/testdata/isotropic_results_ansys.txt", skiprows=1
)
isotropic_results_ansys = isotropic_results_ansys[:, 3:]
anisotropic_results_ansys = np.loadtxt(
"tests/testdata/anisotropic_results_ansys.txt", skiprows=1
)
anisotropic_results_ansys = anisotropic_results_ansys[:, 3:]
isotropic_results_magpylib = np.load("isotropic_results_magpylib_%d.npy" % cells)
anisotropic_results_magpylib = np.load("anisotropic_results_magpylib_%d.npy" % cells)


isotropic_results_ansys = isotropic_results_ansys.reshape((6, -1, 3))
Expand Down

0 comments on commit 5d82b89

Please sign in to comment.