Changeset 4345 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Mar 6, 2020 3:05:22 PM (20 months ago)
Author:
toby
Message:

Add more image settings to preferences; prevent save of config.py after "no save"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r4343 r4345  
    345345        Data['calibrant'] = ''
    346346        Data['IOtth'] = [5.0,50.0]
     347        if GSASIIpath.GetConfigValue('Image_2theta_min'):
     348            try:
     349                Data['IOtth'][0] = float(GSASIIpath.GetConfigValue('Image_2theta_min'))
     350            except:
     351                pass
     352        if GSASIIpath.GetConfigValue('Image_2theta_max'):
     353            try:
     354                Data['IOtth'][1] = float(GSASIIpath.GetConfigValue('Image_2theta_max'))
     355            except:
     356                pass
    347357        Data['LRazimuth'] = [0.,180.]
    348358        Data['azmthOff'] = 0.0
Note: See TracChangeset for help on using the changeset viewer.