Skip to content

Commit 690751f

Browse files
authored
Merge pull request #1928 from psavery/wppf-diff-lineout-range
Use the azimuthal lineout range in WPPF difference
2 parents b70947d + f52c74b commit 690751f

File tree

3 files changed

+266
-168
lines changed

3 files changed

+266
-168
lines changed

hexrdgui/hexrd_config.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,15 @@ def load_from_state(self, state):
560560
# We loaded a state with the old statuses. Remove them.
561561
self.remove_status(self.config['instrument'])
562562

563+
# Never allow WPPF difference curve to be set `True` from state
564+
disable_wppf_difference = (
565+
state.get('config_calibration',
566+
{}).get('wppf',
567+
{}).get('show_difference_axis')
568+
)
569+
if disable_wppf_difference:
570+
state['config_calibration']['wppf']['show_difference_axis'] = False
571+
563572
# Now load everything else
564573
try:
565574
for name, value in state.items():

0 commit comments

Comments
 (0)