Changeset 3172 for trunk/testSSymbols.py


Ignore:
Timestamp:
Dec 4, 2017 4:22:31 PM (4 years ago)
Author:
vondreele
Message:

change from wx.DefaultSize? to our defaults if window size is 'None'
A TODO in Integrate for saving the x,y --> 2th,azm map between images
complete fix to allowed super symmetries by lattice + pt. grp lookup
also fix operator check for complete super symmetry
finish cif import of super symmetry cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testSSymbols.py

    r3171 r3172  
    101101                msg = 'Space Group Information'
    102102                G2G.SGMessageBox(self,msg,text,table).Show()
    103             SSChoice = G2spc.ssdict.get(Data['SGData']['SpGrp'],['',])
     103            latt = Data['SGData']['SGLatt']+Data['SGData']['SGPtGrp']
     104            SSChoice = G2spc.ptssdict.get(latt,['',])
    104105            Data['SuperSg'] = SSChoice[0]
    105106            self.UpdateData(Data)
     
    107108        def OnSuperGp(event):
    108109            SSymbol = superGp.GetValue()
     110            print('Try: %s%s'%(Data['SGData']['SpGrp'],SSymbol))
    109111            E,SSGData = G2spc.SSpcGroup(Data['SGData'],SSymbol)
    110112            if SSGData:
     
    128130                Text = '\n'.join(text)
    129131                wx.MessageBox(Text,caption=msg,style=Style)
    130             self.UpdateData(Data)
     132            wx.CallAfter(self.UpdateData,Data)
    131133       
    132134        SGData = G2spc.SpcGroup(Data['SGData']['SpGrp'])[1]
     
    139141        mainSizer.Add(SGTxt,0,WACV)
    140142        mainSizer.Add(wx.StaticText(self.testSSPanel,label=' Superspace group: '+Data['SGData']['SpGrp']),0,WACV)
    141         SSChoice = G2spc.ssdict.get(Data['SGData']['SpGrp'],[])
     143        latt = Data['SGData']['SGLatt']+Data['SGData']['SGPtGrp']
     144        SSChoice = G2spc.ptssdict.get(latt,['',])
    142145        if SSChoice:
    143146            superGp = wx.ComboBox(self.testSSPanel,value=Data['SuperSg'],choices=SSChoice,style=wx.CB_DROPDOWN)   #wx.CB_READONLY|
Note: See TracChangeset for help on using the changeset viewer.