Changeset 3210 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Dec 29, 2017 12:52:35 PM (5 years ago)
Author:
vondreele
Message:

some fixes for magnetic incommensurate cifs - dealing with 2 different dictionary defns for mcif!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3208 r3210  
    8686        first = text[0].split(':')[-1].strip()
    8787        cents = [0,]
    88         if len(Cents):
     88        if len(Cents) > 1:
    8989            cents = text[-1].split(';')
    9090        for line in text:
     
    9292        ncol = self.table[0].count(',')+2
    9393        for ic,cent in enumerate(cents):
    94             if cent:
     94            if ic:
    9595                cent = cent.strip(' (').strip(')+\n')
    9696                mainSizer.Add(wx.StaticText(self.panel,label=' for (%s)+'%(cent)),0,WACV)
     
    17901790            return magSizer
    17911791           
    1792         def PawleySizer():
    1793            
    1794             def OnPawleyRef(event):
    1795                 generalData['doPawley'] = pawlRef.GetValue()
    1796            
    1797             pawleySizer = wx.BoxSizer(wx.HORIZONTAL)
    1798             pawleySizer.Add(wx.StaticText(General,label=' Pawley controls: '),0,WACV)
    1799             pawlRef = wx.CheckBox(General,-1,label=' Do Pawley refinement?')
    1800             pawlRef.SetValue(generalData['doPawley'])
    1801             pawlRef.Bind(wx.EVT_CHECKBOX,OnPawleyRef)
    1802             pawleySizer.Add(pawlRef,0,WACV)
    1803             pawleySizer.Add(wx.StaticText(General,label=' Pawley dmin: '),0,WACV)
    1804             pawlVal = G2G.ValidatedTxtCtrl(General,generalData,'Pawley dmin',
    1805                 min=0.25,max=20.,nDig=(10,5))
    1806             pawleySizer.Add(pawlVal,0,WACV)
    1807             pawleySizer.Add(wx.StaticText(General,label=' Pawley neg. wt.: '),0,WACV)
    1808             pawlNegWt = G2G.ValidatedTxtCtrl(General,generalData,'Pawley neg wt',
    1809                 min=0.,max=1.,nDig=(10,4))
    1810             pawleySizer.Add(pawlNegWt,0,WACV)
    1811             return pawleySizer
    1812            
    18131792        def ModulatedSizer(name):
    18141793           
     
    18921871            ssSizer.Add(vecSizer)
    18931872            return ssSizer
     1873           
     1874        def PawleySizer():
     1875           
     1876            def OnPawleyRef(event):
     1877                generalData['doPawley'] = pawlRef.GetValue()
     1878           
     1879            pawleySizer = wx.BoxSizer(wx.HORIZONTAL)
     1880            pawleySizer.Add(wx.StaticText(General,label=' Pawley controls: '),0,WACV)
     1881            pawlRef = wx.CheckBox(General,-1,label=' Do Pawley refinement?')
     1882            pawlRef.SetValue(generalData['doPawley'])
     1883            pawlRef.Bind(wx.EVT_CHECKBOX,OnPawleyRef)
     1884            pawleySizer.Add(pawlRef,0,WACV)
     1885            pawleySizer.Add(wx.StaticText(General,label=' Pawley dmin: '),0,WACV)
     1886            pawlVal = G2G.ValidatedTxtCtrl(General,generalData,'Pawley dmin',
     1887                min=0.25,max=20.,nDig=(10,5))
     1888            pawleySizer.Add(pawlVal,0,WACV)
     1889            pawleySizer.Add(wx.StaticText(General,label=' Pawley neg. wt.: '),0,WACV)
     1890            pawlNegWt = G2G.ValidatedTxtCtrl(General,generalData,'Pawley neg wt',
     1891                min=0.,max=1.,nDig=(10,4))
     1892            pawleySizer.Add(pawlNegWt,0,WACV)
     1893            return pawleySizer
    18941894           
    18951895        def MapSizer():
Note: See TracChangeset for help on using the changeset viewer.