Changeset 2195 for trunk/GSASIIpwd.py


Ignore:
Timestamp:
Apr 3, 2016 2:30:21 PM (7 years ago)
Author:
vondreele
Message:

remove selected area image multiplier - not necessary
fix image scaling issues for selected area simulations
fix issues with absent pydiffaxlib & DIFFaX.exe on some platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwd.py

    r2194 r2195  
    4040    import pydiffax as pyx
    4141except ImportError:
    42     print 'the pydiffax library could not be loaded'
     42    print 'pydiffax is not available for this platform - under develpment'
    4343
    4444   
     
    19161916    df.close()   
    19171917    time0 = time.time()
    1918     subp.call(DIFFaX)
     1918    try:
     1919        subp.call(DIFFaX)
     1920    except OSError:
     1921        print 'DIFFax.exe is not available for this platform - under development'
    19191922    print 'DIFFaX time = %.2fs'%(time.time()-time0)
    19201923    if os.path.exists('GSASII-DIFFaX.spc'):
     
    19791982    planeId = ['h0l','0kl','hhl','h-hl'].index(Layers['Sadp']['Plane'])+1
    19801983    lmax = int(Layers['Sadp']['Lmax'])
    1981     mult = int(Layers['Sadp']['Mult'])
     1984    mult = 1
    19821985# Sequences
    19831986    StkType = ['recursive','explicit'].index(Layers['Stacking'][0])
     
    20462049    hkLim,Incr,Nblk = pyx.pygetsadp(controls,Nspec,spec)
    20472050    Sapd = np.zeros((256,256))
    2048     maxInt = np.max(spec[1:])
    2049     Scale = mult*32767./maxInt
    20502051    iB = 0
    20512052    for i in range(hkLim):
     
    20642065            Sapd[:,p2] = spec[iB:iF]
    20652066        iB += Nblk
    2066     Sapd *= Scale
    2067     Sapd = np.where(Sapd<32767.,Sapd,32767.)
    20682067    Layers['Sadp']['Img'] = Sapd
    20692068    print 'GETSAD time = %.2fs'%(time.time()-time0)
Note: See TracChangeset for help on using the changeset viewer.