Changeset 3563


Ignore:
Timestamp:
Aug 15, 2018 3:02:10 PM (3 years ago)
Author:
vondreele
Message:

add 'color' to the save/load image control set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r3521 r3563  
    360360        Source = G2frame.GPXtree.GetItemText(G2frame.Image)
    361361        # Assemble a list of item labels
    362         keyList = ['type','wavelength','calibrant','distance','center','Oblique',
     362        keyList = ['type','color','wavelength','calibrant','distance','center','Oblique',
    363363                    'tilt','rotation','azmthOff','fullIntegrate','LRazimuth','setdist',
    364364                    'IOtth','outChannels','outAzimuths','invert_x','invert_y','DetDepth',
     
    408408    def WriteControls(filename,data):
    409409        File = open(filename,'w')
    410         keys = ['type','wavelength','calibrant','distance','center','Oblique',
     410        keys = ['type','color','wavelength','calibrant','distance','center','Oblique',
    411411            'tilt','rotation','azmthOff','fullIntegrate','LRazimuth','setdist',
    412412            'IOtth','outChannels','outAzimuths','invert_x','invert_y','DetDepth',
     
    468468           
    469469    def LoadControls(Slines,data):
    470         cntlList = ['wavelength','distance','tilt','invert_x','invert_y','type','Oblique',
     470        cntlList = ['color','wavelength','distance','tilt','invert_x','invert_y','type','Oblique',
    471471            'fullIntegrate','outChannels','outAzimuths','LRazimuth','IOtth','azmthOff','DetDepth',
    472472            'calibskip','pixLimit','cutoff','calibdmin','Flat Bkg','varyList','setdist',
     
    477477                continue
    478478            [key,val] = S.strip().split(':',1)
    479             if key in ['type','calibrant','binType','SampleShape',]:    #strings
     479            if key in ['type','calibrant','binType','SampleShape','color',]:    #strings
    480480                save[key] = val
    481481            elif key in ['varyList',]:
Note: See TracChangeset for help on using the changeset viewer.