Skip to content

Commit 7d5f801

Browse files
authored
Fix units case in available result (#1238)
1 parent 8b0180a commit 7d5f801

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ansys/dpf/core/available_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def homogeneity(self):
186186
@property
187187
def unit(self):
188188
"""Unit of the result."""
189-
return self._unit.lower()
189+
return self._unit
190190

191191
@property
192192
def operator_name(self):

tests/test_resultinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_print_available_result_with_qualifiers(cfx_heating_coil, server_type):
100100
Number of components: 1
101101
Dimensionality: scalar
102102
Homogeneity: specific_heat
103-
Units: j/kg*k^-1
103+
Units: J/kg*K^-1
104104
Location: Nodal
105105
Available qualifier labels:""" # noqa: E501
106106
ref2 = "'phase': 2"

0 commit comments

Comments
 (0)