Ignore:
Timestamp:
Mar 9, 2021 8:34:13 AM (9 months 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

File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.