Changeset 2739 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
Mar 4, 2017 9:56:49 AM (8 years ago)
Author:
vondreele
Message:

comment out "other self-updating plots" - caused failures in GSASII.py
newLeBail interfered with ordinary Rietveld refinement - set False by default (was true)
add generation of delt-G(R) calc - not complete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIstrIO.py

    r2735 r2739  
    22362236                if Phases[phase]['General']['doPawley']:
    22372237                    hapDict[pfx+'LeBail'] = False           #Pawley supercedes LeBail
    2238                     hapDict[pfx+'newLeBail'] = True
     2238                    hapDict[pfx+'newLeBail'] = False
    22392239                    Tmin = G2lat.Dsp2pos(inst,dmin)
    22402240                    if 'C' in inst['Type'][1]:
     
    22442244                else:
    22452245                    hapDict[pfx+'LeBail'] = hapData.get('LeBail',False)
    2246                     hapDict[pfx+'newLeBail'] = hapData.get('newLeBail',True)
     2246                    hapDict[pfx+'newLeBail'] = hapData.get('newLeBail',False)
    22472247                if Phases[phase]['General']['Type'] == 'magnetic':
    22482248                    dmin = max(dmin,Phases[phase]['General']['MagDmin'])
    22492249                for item in ['Scale','Extinction']:
    22502250                    hapDict[pfx+item] = hapData[item][0]
    2251                     if hapData[item][1] and not hapDict[pfx+'LeBail']:
     2251                    if hapData[item][1]:
    22522252                        hapVary.append(pfx+item)
    22532253                names = G2spc.HStrainNames(SGData)
     
    22622262                        hapDict[pfx+'MD'] = hapData['Pref.Ori.'][1]
    22632263                        controlDict[pfx+'MDAxis'] = hapData['Pref.Ori.'][3]
    2264                         if hapData['Pref.Ori.'][2] and not hapDict[pfx+'LeBail']:
     2264                        if hapData['Pref.Ori.'][2]:
    22652265                            hapVary.append(pfx+'MD')
    22662266                    else:                           #'SH' spherical harmonics
     
    22782278                        for item in hapData['Pref.Ori.'][5]:
    22792279                            hapDict[pfx+item] = hapData['Pref.Ori.'][5][item]
    2280                             if hapData['Pref.Ori.'][2] and not hapDict[pfx+'LeBail']:
     2280                            if hapData['Pref.Ori.'][2]:
    22812281                                hapVary.append(pfx+item)
    22822282                for item in ['Mustrain','Size']:
    22832283                    controlDict[pfx+item+'Type'] = hapData[item][0]
    22842284                    hapDict[pfx+item+';mx'] = hapData[item][1][2]
    2285                     if hapData[item][2][2] and not hapDict[pfx+'newLeBail']:
     2285                    if hapData[item][2][2]:
    22862286                        hapVary.append(pfx+item+';mx')
    22872287                    if hapData[item][0] in ['isotropic','uniaxial']:
    22882288                        hapDict[pfx+item+';i'] = hapData[item][1][0]
    2289                         if hapData[item][2][0] and not hapDict[pfx+'newLeBail']:
     2289                        if hapData[item][2][0]:
    22902290                            hapVary.append(pfx+item+';i')
    22912291                        if hapData[item][0] == 'uniaxial':
    22922292                            controlDict[pfx+item+'Axis'] = hapData[item][3]
    22932293                            hapDict[pfx+item+';a'] = hapData[item][1][1]
    2294                             if hapData[item][2][1] and not hapDict[pfx+'newLeBail']:
     2294                            if hapData[item][2][1]:
    22952295                                hapVary.append(pfx+item+';a')
    22962296                    else:       #generalized for mustrain or ellipsoidal for size
     
    23062306                            sfx = ';'+str(i)
    23072307                            hapDict[pfx+item+sfx] = hapData[item][4][i]
    2308                             if hapData[item][5][i] and not hapDict[pfx+'newLeBail']:
     2308                            if hapData[item][5][i]:
    23092309                                hapVary.append(pfx+item+sfx)
    23102310                if Phases[phase]['General']['Type'] != 'magnetic':
    23112311                    for bab in ['BabA','BabU']:
    23122312                        hapDict[pfx+bab] = hapData['Babinet'][bab][0]
    2313                         if hapData['Babinet'][bab][1] and not hapDict[pfx+'LeBail']:
     2313                        if hapData['Babinet'][bab][1]:
    23142314                            hapVary.append(pfx+bab)
    23152315                               
     
    23322332                    PrintMuStrain(hapData['Mustrain'],SGData)
    23332333                    PrintHStrain(hapData['HStrain'],SGData)
    2334                     if Phases[phase]['General']['Type'] != 'magnetic' and not hapDict[pfx+'LeBail']:
     2334                    if Phases[phase]['General']['Type'] != 'magnetic':
    23352335                        if hapData['Babinet']['BabA'][0]:
    23362336                            PrintBabinet(hapData['Babinet'])                       
Note: See TracChangeset for help on using the changeset viewer.