Skip to content

Commit

Permalink
Add units to stiffness/compliance text
Browse files Browse the repository at this point in the history
This was just a request made by LLNL.

Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Oct 16, 2023
1 parent 90e5910 commit 15918ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hexrd/ui/material_properties_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def material(self):
@property
def elastic_tensor_type(self):
type_map = {
'Stiffness': 'stiffness',
'Compliance': 'compliance',
'Stiffness (GPa)': 'stiffness',
'Compliance (TPa⁻¹)': 'compliance',
}
return type_map[self.ui.elastic_tensor_type.currentText()]

Expand Down
4 changes: 2 additions & 2 deletions hexrd/ui/resources/ui/material_properties_editor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
<widget class="QComboBox" name="elastic_tensor_type">
<item>
<property name="text">
<string>Stiffness</string>
<string>Stiffness (GPa)</string>
</property>
</item>
<item>
<property name="text">
<string>Compliance</string>
<string>Compliance (TPa⁻¹)</string>
</property>
</item>
</widget>
Expand Down

0 comments on commit 15918ef

Please sign in to comment.