Skip to content

Commit 7c66e96

Browse files
authored
Merge pull request #1903 from HEXRD/fit-grains-hide-stress-settings
Hide stress settings in fit grains results
2 parents 475a451 + 5eabab1 commit 7c66e96

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

hexrdgui/indexing/fit_grains_results_dialog.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ def setup_gui(self):
115115
self.update_ranges_gui()
116116
self.update_enable_states()
117117

118+
# FIXME: the stress conversion is not right. Hide the
119+
# conversion options until we fix it.
120+
self.ui.convert_strain_to_stress.setVisible(False)
121+
self.ui.export_stresses.setVisible(False)
122+
118123
@property
119124
def num_grains(self):
120125
return self.data.shape[0]
@@ -134,6 +139,9 @@ def converted_data(self):
134139
grain[COORDS_SLICE] = (rho, phi, y)
135140

136141
if tensor_type == 'stress':
142+
# FIXME: the below code just isn't right. Raise a
143+
# NotImplementedError until we fix it.
144+
raise NotImplementedError
137145
for grain in data:
138146
# Convert strain to stress
139147
# Multiply last three numbers by factor of 2

0 commit comments

Comments
 (0)