Changeset 2183 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Mar 24, 2016 9:58:40 AM (7 years ago)
Author:
vondreele
Message:

fix General - atomic wt. now updated on isotope change
add new Stacking fault option to make sequence of DIFFaX runs varying one variable - under development
fix problem in G2image & G2imageGUI where change in FlatBkg?, Background or Dark didn't change thresholds or image plot limits - these are now set to new image limits.
Some of these used tricky changes to sizer values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r2182 r2183  
    17381738################################################################################
    17391739
     1740def GetStackParms(Layers):
     1741   
     1742    Parms = []
     1743#cell parms
     1744    cell = Layers['Cell']
     1745    if Layers['Laue'] in ['-3','-3m','4/m','4/mmm','6/m','6/mmm']:
     1746        Parms.append('cellA')
     1747        Parms.append('cellC')
     1748    else:
     1749        Parms.append('cellA')
     1750        Parms.append('cellB')
     1751        Parms.append('cellC')
     1752        if Layers['Laue'] != 'mmm':
     1753            Parms.append('cellG')
     1754#Transition parms
     1755    Trans = Layers['Transitions']
     1756    for iY in range(len(Layers['Layers'])):
     1757        for iX in range(len(Layers['Layers'])):
     1758            Parms.append('TransP;%d;%d'%(iY,iX))
     1759            Parms.append('TransX;%d;%d'%(iY,iX))
     1760            Parms.append('TransY;%d;%d'%(iY,iX))
     1761            Parms.append('TransZ;%d;%d'%(iY,iX))
     1762    return Parms
     1763
    17401764def StackSim(Layers,ctrls,HistName='',scale=0.,background={},limits=[],inst={},profile=[]):
    17411765    '''Simulate powder or selected area diffraction pattern from stacking faults using DIFFaX
Note: See TracChangeset for help on using the changeset viewer.