Ignore:
Timestamp:
Nov 4, 2014 10:59:58 AM (8 years ago)
Author:
vondreele
Message:

avoid error on startup with no file name
fix derivative errors for lattice parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIstrMath.py

    r1560 r1561  
    14001400        const = dpr/np.sqrt(1.0-wave**2*dstsq/4.0)
    14011401        dpdw = const*dst
    1402         dpdA = np.array([h**2,k**2,l**2,h*k,h*l,k*l])
    1403         dpdA *= const*wave/(2.0*dst)
     1402        dpdA = np.array([h**2,k**2,l**2,h*k,h*l,k*l])*const*wave/(2.0*dst)
    14041403        dpdZ = 1.0
    14051404        const = 9.e-2/(np.pi*parmDict[hfx+'Gonio. radius'])                  #shifts in microns
     
    14821481    if 'C' in calcControls[hfx+'histType']:
    14831482        for item in dDijDict:
    1484             dDijDict[item] *= -180.0*refl[4]**2*tand(refl[5]/2.0)/np.pi
     1483            dDijDict[item] *= 180.0*refl[4]**2*tand(refl[5]/2.0)/np.pi
    14851484    else:
    14861485        for item in dDijDict:
Note: See TracChangeset for help on using the changeset viewer.