Changeset 4694 for trunk


Ignore:
Timestamp:
Dec 31, 2020 5:46:53 PM (10 months ago)
Author:
toby
Message:

Cell test: update reflection positions after zero or Bravais change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r4674 r4694  
    33633363        controls[13] = SPGlist[brav][0]       
    33643364        ssopt['Use'] = False
     3365        OnHklShow(event)
    33653366        wx.CallLater(100,UpdateUnitCellsGrid,G2frame,data)
    33663367       
     
    34413442        if invalid:
    34423443            return
    3443         SetCellValue(tc,Info[tc.GetId()],value)
     3444        try: # fails when zero is updated
     3445            SetCellValue(tc,Info[tc.GetId()],value)
     3446        except:
     3447            Inst = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(
     3448                G2frame,G2frame.PatternId, 'Instrument Parameters'))[0]
     3449            if 'Zero' in Inst:
     3450                Inst['Zero'][1] = value
    34443451        OnHklShow(tc.event)
    34453452        wx.CallAfter(UpdateUnitCellsGrid,G2frame,data)
     
    44814488        littleSizer.Add(wx.StaticText(G2frame.dataWindow,label=" Zero offset "),0,WACV)
    44824489        zero = G2G.ValidatedTxtCtrl(G2frame.dataWindow,controls,1,nDig=(10,4),typeHint=float,
    4483                                     xmin=-5.,xmax=5.,size=(50,-1))
     4490                                    xmin=-5.,xmax=5.,size=(50,-1),OnLeave=OnCellChange)
    44844491        littleSizer.Add(zero,0,WACV)
    44854492        zeroVar = wx.CheckBox(G2frame.dataWindow,label="Refine?")
Note: See TracChangeset for help on using the changeset viewer.