Changeset 1954 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
Aug 10, 2015 3:48:11 PM (8 years ago)
Author:
vondreele
Message:

add print line whwn lambda is changed in Levenberg-Marquardt refinement
use ftol for stopping refinement (wasn't used before)
try LS on SS - some easy mods to get to start
SS monoclinic special pos constraints checked OK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrIO.py

    r1944 r1954  
    11601160                    for Stype in ['Sfrac','Spos','Sadp','Smag']:
    11611161                        Waves = AtomSS[Stype]
    1162                         uId,uCoef = CSI[Stype]
    11631162                        for iw,wave in enumerate(Waves):
    11641163                            if not iw:
    1165                                 CSI = G2spc.GetSSfxuinel(waveType,at[cx:cx+3],SGData,SSGData)
     1164                                CSI = G2spc.GetSSfxuinel(waveType,iw,at[cx:cx+3],SGData,SSGData)
    11661165                            else:
    1167                                 CSI = G2spc.GetSSfxuinel('Fourier',at[cx:cx+3],SGData,SSGData)
     1166                                CSI = G2spc.GetSSfxuinel('Fourier',iw,at[cx:cx+3],SGData,SSGData)
     1167                            uId,uCoef = CSI[Stype]
    11681168                            stiw = str(i)+':'+str(iw)
    11691169                            if Stype == 'Spos':
     
    11921192                                    pfx+'MXcos:'+stiw,pfx+'MYcos:'+stiw,pfx+'MZcos:'+stiw]
    11931193                            phaseDict.update(dict(zip(names,wave[0])))
    1194                             if wave[1]:
     1194                            if wave[1]: #what do we do here for multiple terms in modulation constraints?
    11951195                                for j in range(len(equivs)):
    1196                                     if uId[j] > 0:                               
     1196                                    if uId[j][0] > 0:                               
    11971197                                        phaseVary.append(names[j])
    1198                                         equivs[uId[j]-1].append([names[j],uCoef[j]])
     1198                                        equivs[uId[j][0]-1].append([names[j],uCoef[j][0]])
    11991199                                for equiv in equivs:
    12001200                                    if len(equiv) > 1:
Note: See TracChangeset for help on using the changeset viewer.