Skip to content

Commit 75ca8a1

Browse files
authored
fix typo CommonResults (#129)
1 parent f608955 commit 75ca8a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ansys/dpf/core/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ def stress(self):
649649
>>> stress = stress.on_last_time_freq.on_named_selection("_CONSTRAINEDNODES")
650650
>>> last_time_disp = stress.eval()
651651
"""
652-
return super().__result__("elastic_strain")
652+
return super().__result__("stress")
653653

654654
@property
655655
def structural_temperature(self):

tests/test_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def test_result_not_dynamic(plate_msup):
206206
assert np.allclose(
207207
fc.time_freq_support.time_frequencies.data, np.array([0.115, 0.125])
208208
)
209+
assert fc[0].unit == "Pa"
209210
dis = model.results.displacement().eval()
210211
dpf.core.settings.set_dynamic_available_results_capability(True)
211212

0 commit comments

Comments
 (0)