Changeset 1604 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Dec 11, 2014 3:27:57 PM (9 years ago)
Author:
vondreele
Message:

make modulation wave maps
fix atom index bugs
begin modulated structure imput to least squares

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r1601 r1604  
    110110            generalData['POhkl'] = [0,0,1]
    111111        if 'Map' not in generalData:
    112             generalData['Map'] = mapDefault
     112            generalData['Map'] = {}
     113            generalData['Map'].update(mapDefault)
    113114        if 'Flip' not in generalData:
    114115            generalData['Flip'] = {'RefList':'','Resolution':0.5,'Norm element':'None',
     
    135136                generalData['SSGData'] = {}
    136137            if '4DmapData' not in generalData:
    137                 generalData['4DmapData'] = mapDefault
     138                generalData['4DmapData'] = {}
     139                generalData['4DmapData'].update(mapDefault)
    138140                generalData['4DmapData'].update({'MapType':'Fobs'})
    139141# end of patches
     
    19701972               
    19711973            def OnShowWave(event):
    1972                 mapBtn.SetValue(False)
    1973                 G2plt.ModulationPlot(G2frame,data,atom)
     1974                Obj = event.GetEventObject()
     1975                atom = Indx[Obj.GetId()]               
     1976                Ax = Obj.GetValue()
     1977                G2plt.ModulationPlot(G2frame,data,atom,Ax)
    19741978               
    19751979            atomSizer = wx.BoxSizer(wx.HORIZONTAL)
     
    19791983            waveType.Bind(wx.EVT_COMBOBOX,OnWaveType)
    19801984            atomSizer.Add(waveType,0,WACV)
    1981             mapBtn = wx.CheckBox(waveData,label='Show contour map?')
    1982             mapBtn.Bind(wx.EVT_CHECKBOX, OnShowWave)
    1983             Indx[mapBtn.GetId()] = atom
    1984             atomSizer.Add(mapBtn,0,WACV)
     1985            axchoice = ['x','y','z']
     1986            atomSizer.Add(wx.StaticText(waveData,label=' Show contour map for axis:'),0,WACV)
     1987            mapSel = wx.ComboBox(waveData,value=' ',choices=axchoice,
     1988                style=wx.CB_READONLY|wx.CB_DROPDOWN)
     1989            mapSel.Bind(wx.EVT_COMBOBOX,OnShowWave)
     1990            Indx[mapSel.GetId()] = atom
     1991            atomSizer.Add(mapSel,0,WACV)
    19851992            return atomSizer
    19861993           
     
    20592066               
    20602067            Map = generalData['4DmapData']
     2068            Map['Resolution'] = 0.25
    20612069            refList = data['Histograms'].keys()
    20622070            mapSizer = wx.BoxSizer(wx.HORIZONTAL)
     
    20842092        typeNames = {'Sfrac':' Site fraction','Spos':' Position','Sadp':' Thermal motion','Smag':' Magnetic moment'}
    20852093        numVals = {'Sfrac':2,'Spos':6,'Sadp':12,'Smag':6}
    2086         posNames = ['Xsin','Ysin','Zsin','Xcos','Ysin','Zsin']
     2094        posNames = ['Xsin','Ysin','Zsin','Xcos','Ycos','Zcos']
    20872095        adpNames = ['U11sin','U22sin','U33sin','U12sin','U13sin','U23sin',
    20882096            'U11cos','U22cos','U33cos','U12cos','U13cos','U23cos']
Note: See TracChangeset for help on using the changeset viewer.