Changeset 3357


Ignore:
Timestamp:
Apr 25, 2018 1:33:02 PM (4 years ago)
Author:
vondreele
Message:

fix problem of input cell a in hexagonal in Unit Cells window. Now calls SetCellValue? to be sure equivalent cell values are changed.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIindex.py

    r3231 r3357  
    526526    if Zref:
    527527        values.append(Z)
     528#TODO: try Hessian refinement here - might improve things
     529#    result = G2mth.HessianLSQ(errFitZ,values,Hess=peakHess,        #would need "peakHess" routine; returns vec & Hess
     530#        args=(ibrav,Peaks[7],Peaks[4:7],Peaks[0],wave,Z,Zref]),ftol=.01,maxcyc=10)
    528531    result = so.leastsq(errFitZ,values,Dfun=dervFitZ,full_output=True,ftol=0.0001,
    529532        args=(ibrav,Peaks[7],Peaks[4:7],Peaks[0],wave,Z,Zref))
  • trunk/GSASIIpwdGUI.py

    r3356 r3357  
    29522952        if invalid:
    29532953            return
    2954         OnHklShow(None)
     2954        SetCellValue(tc,Info[tc.GetId()],value)
     2955        OnHklShow(tc.event)
    29552956        wx.CallAfter(UpdateUnitCellsGrid,G2frame,data)
    29562957       
     
    33363337    cellList = []
    33373338    valDict = {}
     3339    Info = {}
    33383340    littleSizer = wx.FlexGridSizer(0,useGUI[1],5,5)
    33393341    for txt,fmt,ifEdit,Id in useGUI[2]:
     
    33413343        if ifEdit:          #a,b,c,etc.
    33423344            cellVal = G2G.ValidatedTxtCtrl(G2frame.dataWindow,controls,6+Id,nDig=fmt,OnLeave=OnCellChange)
     3345            Info[cellVal.GetId()] = Id
    33433346            valSizer = wx.BoxSizer(wx.HORIZONTAL)
    33443347            valSizer.Add(cellVal,0,WACV)
Note: See TracChangeset for help on using the changeset viewer.