File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
import pytest
3
3
import conftest
4
4
from ansys .dpf import core as dpf
5
+ from ansys .dpf .core .check_version import server_meet_version
5
6
6
7
7
8
@pytest .mark .skipif (
@@ -72,8 +73,12 @@ def test_lsdyna_generic(d3plot_files):
72
73
global_velocity_model = model .results .global_velocity ().eval ()
73
74
74
75
assert np .allclose (global_velocity_fc [0 ].data [0 ], global_velocity_model [0 ].data [0 ])
75
- # assert global_velocity_fc[0].unit == "mm*Hz"
76
- # assert global_velocity_model[0].unit == "mm*Hz"
76
+ if server_meet_version ("7.1" , global_velocity_op ._server ):
77
+ assert global_velocity_fc [0 ].unit == "mm/s"
78
+ assert global_velocity_model [0 ].unit == "mm/s"
79
+ else :
80
+ assert global_velocity_fc [0 ].unit == "mm*Hz"
81
+ assert global_velocity_model [0 ].unit == "mm*Hz"
77
82
78
83
# ------------------------------------------------- Initial Coordinates
79
84
You can’t perform that action at this time.
0 commit comments