Skip to content

Commit

Permalink
minor arg tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Bernier committed May 3, 2016
1 parent ae86e7e commit 6551160
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hexrd/xrd/crystallography.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,9 @@ def makeScatteringVectors(hkls, rMat_c, bMat, wavelength, chiTilt=None):
"""
# arg munging
if chiTilt is None:
chiTilt = 0.
chi = 0.
else:
chi = float(chiTilt)
rMat_c = rMat_c.squeeze()

# these are the reciprocal lattice vectors in the SAMPLE FRAME
Expand All @@ -1016,7 +1018,7 @@ def makeScatteringVectors(hkls, rMat_c, bMat, wavelength, chiTilt=None):
assert dim0 == 3, "Looks like something is wrong with your lattice plane normals son!"

# call model from transforms now
oangs0, oangs1 = xfcapi.oscillAnglesOfHKLs(hkls.T, chiTilt, rMat_c, bMat, wavelength)
oangs0, oangs1 = xfcapi.oscillAnglesOfHKLs(hkls.T, chi, rMat_c, bMat, wavelength)

return gVec_s, oangs0.T, oangs1.T

Expand Down

0 comments on commit 6551160

Please sign in to comment.