Skip to content

Commit 3bb3f59

Browse files
authored
Merge pull request #1920 from HEXRD/texture-fixes
pass sample rotation matrix instead of sample normal
2 parents c86efba + 0935977 commit 3bb3f59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hexrdgui/calibration/wppf_options_dialog.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,9 @@ def _copy_texture_figs(self, obj1, obj2):
20242024
if obj1 is None or obj2 is None:
20252025
return
20262026

2027+
if any(not hasattr(x, 'texture_model') for x in (obj1, obj2)):
2028+
return
2029+
20272030
for model_key, model1 in obj1.texture_model.items():
20282031
model2 = obj2.texture_model[model_key]
20292032
if model1 is None or model2 is None:
@@ -2242,7 +2245,7 @@ def texture_model_dict(self) -> dict[str, HarmonicModel]:
22422245
'material': Material_Rietveld(material_obj=mat),
22432246
'bvec': HexrdConfig().beam_vector,
22442247
'evec': ct.eta_vec,
2245-
'sample_normal': HexrdConfig().sample_normal,
2248+
'sample_rmat': HexrdConfig().sample_rmat,
22462249
**kwargs,
22472250
})
22482251
return ret

0 commit comments

Comments
 (0)