Skip to content

Commit

Permalink
Revert "Fix issue in electric test (#383)" (#384)
Browse files Browse the repository at this point in the history
This reverts commit 33b3b60.
  • Loading branch information
rafacanton authored Apr 26, 2023
1 parent 33b3b60 commit d41f17e
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tests/test_electricanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,11 @@ def test_electricfield_nodscoping(rth_electric):
s = ef.vector
assert s.num_fields == 1
assert s[0].location == post.locations.elemental
if len(s[0].data) == 8: # bug before Ansys 2023R2
assert len(s[0].data) == 8
assert len(s[0].data[0]) == 3
assert np.allclose(
s[0].data[0].tolist(), [-3.41948692e-14, 1.95629520e01, 7.77156117e-15]
)
else:
assert len(s[0].data) == 64
assert len(s[0].data[0]) == 3
assert np.allclose(
s[0].data[0].tolist(), [-3.41948692e-14, 1.95629520e01, 7.77156117e-15]
)
assert len(s[0].data) == 8
assert len(s[0].data[0]) == 3
assert np.allclose(
s[0].data[0].tolist(), [-3.41948692e-14, 1.95629520e01, 7.77156117e-15]
)
ef = solution.electric_field(
location=post.locations.elemental_nodal, node_scoping=[2]
)
Expand Down

0 comments on commit d41f17e

Please sign in to comment.