Changeset 4999 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Jul 22, 2021 2:09:36 PM (3 months ago)
Author:
vondreele
Message:

change incommensurate magneti str. fctr. equations
avoid search for modulation vector when no peaks were fitted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r4991 r4999  
    46254625        maxMH.Bind(wx.EVT_COMBOBOX, OnMaxMH)
    46264626        ssSizer.Add(maxMH,0,WACV)
    4627         findMV = wx.Button(G2frame.dataWindow,label="Find mod. vec.?")
    4628         findMV.Bind(wx.EVT_BUTTON,OnFindOneMV)
    4629         ssSizer.Add(findMV,0,WACV)
    4630         findallMV = wx.Button(G2frame.dataWindow,label="Try all?")
    4631         findallMV.Bind(wx.EVT_BUTTON,OnFindMV)
    4632         ssSizer.Add(findallMV,0,WACV)
     4627        if len(peaks[0]):
     4628            findMV = wx.Button(G2frame.dataWindow,label="Find mod. vec.?")
     4629            findMV.Bind(wx.EVT_BUTTON,OnFindOneMV)
     4630            ssSizer.Add(findMV,0,WACV)
     4631            findallMV = wx.Button(G2frame.dataWindow,label="Try all?")
     4632            findallMV.Bind(wx.EVT_BUTTON,OnFindMV)
     4633            ssSizer.Add(findallMV,0,WACV)
    46334634        mainSizer.Add(ssSizer,0)
    46344635
Note: See TracChangeset for help on using the changeset viewer.