Ignore:
Timestamp:
Jan 11, 2016 2:12:00 PM (6 years ago)
Author:
vondreele
Message:

Add plotting of 2D modulation vector result (a0g) for monoclinic.
Trap excessive approximations in TOF2dsp
Add a general purpose contour plot
restrict maxH = 1 for modulation search; higher maxH not effective

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIlattice.py

    r2038 r2120  
    449449        return (pos-Inst['difA'][1]*d**2-Inst['Zero'][1]-Inst['difB'][1]/d)/Inst['difC'][1]
    450450    dsp0 = np.ones_like(Pos)
     451    N = 0
    451452    while True:      #successive approximations
    452453        dsp = func(dsp0,Pos,Inst)
     
    454455            return dsp
    455456        dsp0 = dsp
     457        N += 1
     458        if N > 10:
     459            return dsp
    456460   
    457461def Dsp2pos(Inst,dsp):
Note: See TracChangeset for help on using the changeset viewer.