Changeset 4519 for trunk/GSASIIfpaGUI.py


Ignore:
Timestamp:
Jul 13, 2020 1:27:06 PM (5 years ago)
Author:
vondreele
Message:

G2fpaGUI - minor cleanup
G2lattice - test on 'T' instead of 'C' so that 'B' PWDR types properly handled
G2math - add getPinkalpha, getPinkbeta % deriv routines for pink beam peak shapes

modify setPeakparams to use them

G2plot - test on 'T' instead of 'C' so that 'B' PWDR types properly handled
G2pwd - add pink beam peak shape function - same as TOF peak shape; scale sig & gam to be in centidegrees

  • add wtFactor to FitPeaks? fix bad PWDR weights for peak fitting so reduced chi2 is more appropriate

G2pwdGUI - test on 'T' instead of 'C' so that 'B' PWDR types properly handled

  • add wtFactor to DoPeakFit? to fix bad PWDR weights for peak fitting so reduced chi2 is more appropriate

G2strMath - latest in incommensurate mag str factors - no real improvement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIfpaGUI.py

    r4403 r4519  
    587587        except:
    588588            pass
    589         GoOn = pgbar.Update(5,newmsg='Creating peak list')
     589        pgbar.Update(5,newmsg='Creating peak list')
    590590        pgbar.Raise()
    591591        for pos in peaklist:
     
    593593            area = sum(intArr[max(0,i-maxPtsHM):min(len(intArr),i+maxPtsHM)])
    594594            peakData['peaks'].append(G2mth.setPeakparms(Parms,Parms2,pos,area))
    595         GoOn = pgbar.Update(10,newmsg='Refining peak positions')
     595        pgbar.Update(10,newmsg='Refining peak positions')
    596596        histData = G2frame.GPXtree.GetItemPyData(histId)
    597597        # refine peak positions only
     
    600600                                            bkg,limits[1],
    601601                                            Parms,Parms2,histData[1],bxye,[],
    602                                            False,controldat,None)[0]
    603         GoOn = pgbar.Update(20,newmsg='Refining peak positions && areas')
     602                                           False,controldat)[0]
     603        pgbar.Update(20,newmsg='Refining peak positions && areas')
    604604        # refine peak areas as well
    605605        for pk in peakData['peaks']:
     
    609609                                            Parms,Parms2,histData[1],bxye,[],
    610610                                           False,controldat)[0]
    611         GoOn = pgbar.Update(40,newmsg='Refining profile function')
     611        pgbar.Update(40,newmsg='Refining profile function')
    612612        # refine profile function
    613613        for p in ('U', 'V', 'W', 'X', 'Y'):
     
    617617                                            Parms,Parms2,histData[1],bxye,[],
    618618                                           False,controldat)[0]
    619         GoOn = pgbar.Update(70,newmsg='Refining profile function && asymmetry')
     619        pgbar.Update(70,newmsg='Refining profile function && asymmetry')
    620620        # add in asymmetry
    621621        Parms['SH/L'][2] = True
     
    624624                                            Parms,Parms2,histData[1],bxye,[],
    625625                                           False,controldat)[0]
    626         GoOn = pgbar.Update(100,newmsg='Done')
     626        pgbar.Update(100,newmsg='Done')
    627627        # reset "initial" profile
    628628        for p in Parms:
     
    688688            txt = open(filename[0],'r').read()
    689689            NISTparms.clear()
    690             array = np.array
    691690            d = eval(txt)
    692691            NISTparms.update(d)
Note: See TracChangeset for help on using the changeset viewer.