Changeset 4847 for trunk


Ignore:
Timestamp:
Mar 9, 2021 8:34:13 AM (2 years ago)
Author:
vondreele
Message:

Add (TBD) hide/showtoggle for single crystal systematic extinctions in Reflection list
fix conversion of Uiso to Uij when Uij == 0
fix SHELX 4 reader

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4846 r4847  
    55955595
    55965596    def __init__(self,parent):
    5597 #        wxscroll.ScrolledPanel.__init__(self,parent,wx.ID_ANY,size=parent.GetSize())
    55985597        wx.ScrolledWindow.__init__(self,parent,wx.ID_ANY,size=parent.GetSize())
    55995598        self.parent = parent
     
    60816080       
    60826081        # PDR / Reflection Lists
    6083         G2G.Define_wxId('wxID_SELECTPHASE', ) #some wxIDs defined above in PWDR & SASD
     6082        G2G.Define_wxId('wxID_SELECTPHASE','wxID_SHOWHIDEEXTINCT' ) #some wxIDs defined above in PWDR & SASD
    60846083        self.ReflMenu = wx.MenuBar()
    60856084        self.PrefillDataMenu(self.ReflMenu)
     
    60906089        self.ReflEdit.Append(G2G.wxID_PWDHKLPLOT,'Plot HKLs','Plot HKLs in 2D')
    60916090        self.ReflEdit.Append(G2G.wxID_PWD3DHKLPLOT,'Plot 3D HKLs','Plot HKLs in 3D')
     6091        self.HideShow = self.ReflEdit.Append(G2G.wxID_SHOWHIDEEXTINCT,'Show/hide extinct reflections')
    60926092        self.PostfillDataMenu()
    60936093       
     
    69996999            'Scale':1.0,'oldxy':[],'viewDir':[1,0,0]},'Super':Super,'SuperVec':SuperVec}
    70007000        G2plt.Plot3DSngl(G2frame,newPlot=True,Data=controls,hklRef=refList,Title=phaseName)
     7001       
     7002    def OnToggleExt(event):
     7003        print('TBD')
    70017004                 
    70027005    def OnMergeHKL(event):
     
    72087211            ' Data residual wR: %.3f%% on %d observations'%(data[0]['wR'],data[0]['Nobs'])))
    72097212        if kind == 'PWDR':
    7210             mainSizer.Add(wx.StaticText(G2frame.dataWindow,-1,
    7211                 ' Durbin-Watson statistic: %.3f'%(data[0].get('Durbin-Watson',0.))))
     7213            DBW = ma.getdata(data[0]['Durbin-Watson'])
     7214            mainSizer.Add(wx.StaticText(G2frame.dataWindow,label=' Durbin-Watson statistic: %.3f'%DBW))
    72127215        for value in data[0]:
    72137216            if 'Nref' in value:
     
    77167719            G2plt.PlotPatterns(G2frame)
    77177720    elif G2frame.GPXtree.GetItemText(item) == 'Reflection Lists':   #powder reflections
     7721        G2frame.dataWindow.HideShow.Enable(False)
    77187722        G2frame.PatternId = G2frame.GPXtree.GetItemParent(item)
    77197723        data = G2frame.GPXtree.GetItemPyData(item)
     
    77247728        G2plt.PlotPatterns(G2frame)
    77257729    elif G2frame.GPXtree.GetItemText(item) == 'Reflection List':    #HKLF reflections
     7730        G2frame.dataWindow.HideShow.Enable(True)
    77267731        G2frame.PatternId = G2frame.GPXtree.GetItemParent(item)
    77277732        name = G2frame.GPXtree.GetItemText(G2frame.PatternId)
  • trunk/GSASIIphsGUI.py

    r4839 r4847  
    32853285                        value = atomData[r][c+1]
    32863286                        CSI = G2spc.GetCSuinel(atomData[r][colLabels.index('site sym')])
    3287                         atomData[r][c+1] =  0.0
    32883287                        Atoms.SetCellStyle(r,c+1,VERY_LIGHT_GREY,True)
    32893288                        Atoms.SetCellTextColour(r,c+1,VERY_LIGHT_GREY)
     
    32953294                            if CSI[2][i]:
    32963295                                Atoms.SetCellStyle(r,ci,WHITE,False)
     3296                        atomData[r][c+1] =  0.0
    32973297                elif Atoms.GetColLabelValue(c) in ['U11','U22','U33','U12','U13','U23']:
    32983298                    value = atomData[r][c]
     
    39763976                parm = choices[sel][0]
    39773977                for r in indx:                       
    3978                     if not Atoms.IsReadOnly(r,0):   #not if in RB!
    3979                         atomData[r][cid] = parm
     3978                    if Atoms.IsReadOnly(r,0):   #not if in RB!
     3979                        continue
     3980                    atomData[r][cid] = parm
     3981                    if parm == 'A' and not any(atomData[r][cid+2:cid+8]):
     3982                        sytsym = atomData[r][cs]
     3983                        CSI = G2spc.GetCSuinel(sytsym)
     3984                        atomData[r][ci+2:ci+8] = atomData[r][ci+1]*np.array(CSI[3])
    39803985                FillAtomsGrid(Atoms)
    39813986            dlg.Destroy()
  • trunk/GSASIIpwdGUI.py

    r4844 r4847  
    49694969            raise Exception("how did we not find a phase name?")
    49704970       
     4971    def OnToggleExt(event):
     4972        print('TBD')
     4973                 
    49714974    def OnPageChanged(event):
    49724975        '''Respond to a press on a phase tab by displaying the reflections. This
     
    50085011        G2frame.Bind(wx.EVT_MENU, OnPlot1DHKL, id=G2G.wxID_1DHKLSTICKPLOT)
    50095012        G2frame.Bind(wx.EVT_MENU, OnPlot3DHKL, id=G2G.wxID_PWD3DHKLPLOT)
     5013        G2frame.Bind(wx.EVT_MENU, OnToggleExt, id=G2G.wxID_SHOWHIDEEXTINCT)
    50105014        G2frame.dataWindow.SelectPhase.Enable(False)
    50115015    else:
  • trunk/imports/G2sfact.py

    r4831 r4847  
    150150            self.errors = '  Error reading line '+str(line+1)
    151151            if S[0] == '#': continue       #ignore comments, if any
    152             h,k,l = S[:4],S[4:8],S[8:12]
    153 #            h,k,l = S[:12].split()
    154             Fo,sigFo = S[12:].split()[:2]
    155 #                h,k,l,Fo,sigFo = S[:4],S[4:8],S[8:12],S[12:20],S[20:28]
     152#           h,k,l,Fo,sigFo = S[:4],S[4:8],S[8:12],S[12:20],S[20:28]
     153            h,k,l,Fo,sigFo = S.split()
    156154            h,k,l = [int(h),int(k),int(l)]
    157155            if not any([h,k,l]):
Note: See TracChangeset for help on using the changeset viewer.