Changeset 2735 for trunk/GSASIIstrIO.py


Ignore:
Timestamp:
Mar 2, 2017 12:48:10 PM (8 years ago)
Author:
vondreele
Message:

set default flight path = 20. in case FPATH0 missing from TOF Iparm file.
fix problem editing flight path
modify SetPhaseWindow? to take Size as optional variable & make sizer an optional variable
Use it for all table only phase windows in place of set SizePosLeft? - fixes issues of windows jumping about after Refine.
for initial LeBail? refinement exclude all hap variables (size, mustrain, etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIstrIO.py

    r2732 r2735  
    22562256                    hapDict[pfx+name] = hapData['HStrain'][0][i]
    22572257                    HSvals.append(hapDict[pfx+name])
    2258                     if hapData['HStrain'][1][i]:
     2258                    if hapData['HStrain'][1][i] and not hapDict[pfx+'newLeBail']:
    22592259                        hapVary.append(pfx+name)
    22602260                    controlDict[pfx+'poType'] = hapData['Pref.Ori.'][0]
     
    22832283                    controlDict[pfx+item+'Type'] = hapData[item][0]
    22842284                    hapDict[pfx+item+';mx'] = hapData[item][1][2]
    2285                     if hapData[item][2][2]:
     2285                    if hapData[item][2][2] and not hapDict[pfx+'newLeBail']:
    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]:
     2289                        if hapData[item][2][0] and not hapDict[pfx+'newLeBail']:
    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]:
     2294                            if hapData[item][2][1] and not hapDict[pfx+'newLeBail']:
    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]:
     2308                            if hapData[item][5][i] and not hapDict[pfx+'newLeBail']:
    23092309                                hapVary.append(pfx+item+sfx)
    23102310                if Phases[phase]['General']['Type'] != 'magnetic':
Note: See TracChangeset for help on using the changeset viewer.