Changeset 408 for trunk/GSASIIstruct.py


Ignore:
Timestamp:
Nov 7, 2011 3:13:29 PM (10 years ago)
Author:
vondreele
Message:

add copy to limits menu
more constraint GUI stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstruct.py

    r407 r408  
    791791        Atoms = Phase['Atoms']
    792792        cell = General['Cell']
    793         textureData = General['SH Texture']
    794793        pId = Phase['pId']
    795794        pfx = str(pId)+'::'
     
    866865                                atomsSig[str(i)+':'+str(ind)] = sigDict[names[ind]]
    867866            PrintAtomsAndSig(General,Atoms,atomsSig)
    868            
    869         if textureData['Order']:
    870             SHtextureSig = {}
    871             for name in ['omega','chi','phi']:
    872                 aname = pfx+'SH '+name
    873                 textureData['Sample '+name][1] = parmDict[aname]
    874                 if aname in sigDict:
    875                     SHtextureSig['Sample '+name] = sigDict[aname]
    876             for name in textureData['SH Coeff'][1]:
    877                 aname = pfx+name
    878                 textureData['SH Coeff'][1][name] = parmDict[aname]
    879                 if aname in sigDict:
    880                     SHtextureSig[name] = sigDict[aname]
    881             PrintSHtextureAndSig(textureData,SHtextureSig)
     867       
     868        if 'SH Texture' in General:
     869            textureData = General['SH Texture']   
     870            if textureData['Order']:
     871                SHtextureSig = {}
     872                for name in ['omega','chi','phi']:
     873                    aname = pfx+'SH '+name
     874                    textureData['Sample '+name][1] = parmDict[aname]
     875                    if aname in sigDict:
     876                        SHtextureSig['Sample '+name] = sigDict[aname]
     877                for name in textureData['SH Coeff'][1]:
     878                    aname = pfx+name
     879                    textureData['SH Coeff'][1][name] = parmDict[aname]
     880                    if aname in sigDict:
     881                        SHtextureSig[name] = sigDict[aname]
     882                PrintSHtextureAndSig(textureData,SHtextureSig)
    882883
    883884def GetHistogramPhaseData(Phases,Histograms,Print=True):
Note: See TracChangeset for help on using the changeset viewer.