Changeset 1452


Ignore:
Timestamp:
Aug 1, 2014 2:14:23 PM (7 years ago)
Author:
toby
Message:

fix bug that shows up in numpy 1.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIlattice.py

    r1445 r1452  
    12031203   
    12041204def polfcal(ODFln,SamSym,psi,gam):
    1205     'needs doc string'
     1205    '''Perform a pole figure computation.
     1206    Note that the the number of gam values must either be 1 or must
     1207    match psi. Updated for numpy 1.8.0
     1208    '''
    12061209    import pytexture as ptx
    12071210    RSQPI = 0.5641895835478
    12081211    SQ2 = 1.414213562373
    1209     PolVal = np.ones_like(gam)
     1212    PolVal = np.ones_like(psi)
    12101213    for term in ODFln:
    12111214        if abs(ODFln[term][1]) > 1.e-3:
     
    12221225                else:
    12231226                    Ksl = RSQPI*psrs/SQ2
    1224             PolVal += ODFln[term][1]*Ksl 
     1227            PolVal += ODFln[term][1]*Ksl
    12251228    return PolVal
    12261229   
Note: See TracChangeset for help on using the changeset viewer.