Skip to content

Commit e2e6710

Browse files
author
darrencpagan
committed
Merge Latest Joel Master
Testing 1 2 3
1 parent 5aacce0 commit e2e6710

File tree

2 files changed

+54
-6
lines changed

2 files changed

+54
-6
lines changed

hexrd/xrd/transforms_CAPI.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ def gvecToDetectorXYArray(gVec_c,
147147
rMat_d -- (3, 3) ndarray, the COB taking DETECTOR FRAME components to LAB FRAME
148148
rMat_s -- (n, 3, 3) ndarray of n COB taking SAMPLE FRAME components to LAB FRAME
149149
rMat_c -- (3, 3) ndarray, the COB taking CRYSTAL FRAME components to SAMPLE FRAME
150-
tVec_d -- (3, 1) ndarray, the translation vector connecting LAB to DETECTOR
151-
tVec_s -- (3, 1) ndarray, the translation vector connecting LAB to SAMPLE
152-
tVec_c -- (3, 1) ndarray, the translation vector connecting SAMPLE to CRYSTAL
150+
tVec_d -- (3, 1) ndarray, the translation vector connecting LAB to DETECTOR in LAB
151+
tVec_s -- (3, 1) ndarray, the translation vector connecting LAB to SAMPLE in LAB
152+
tVec_c -- (3, 1) ndarray, the translation vector connecting SAMPLE to CRYSTAL in SAMPLE
153153
154154
Outputs:
155155
(m, 2) ndarray containing the intersections of m <= n diffracted beams
@@ -179,9 +179,9 @@ def detectorXYToGvec(xy_det,
179179
xy_det -- (n, 2) ndarray or list-like input of n detector (x, y) points
180180
rMat_d -- (3, 3) ndarray, the COB taking DETECTOR FRAME components to LAB FRAME
181181
rMat_s -- (3, 3) ndarray, the COB taking SAMPLE FRAME components to LAB FRAME
182-
tVec_d -- (3, 1) ndarray, the translation vector connecting LAB to DETECTOR
183-
tVec_s -- (3, 1) ndarray, the translation vector connecting LAB to SAMPLE
184-
tVec_c -- (3, 1) ndarray, the translation vector connecting SAMPLE to CRYSTAL
182+
tVec_d -- (3, 1) ndarray, the translation vector connecting LAB to DETECTOR in LAB
183+
tVec_s -- (3, 1) ndarray, the translation vector connecting LAB to SAMPLE in LAB
184+
tVec_c -- (3, 1) ndarray, the translation vector connecting SAMPLE to CRYSTAL in SAMPLE
185185
186186
Optional Keyword Arguments:
187187
beamVec -- (3, 1) mdarray containing the incident beam direction components in the LAB FRAME

scripts/VirtualDiffraction.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
Created on Mon Nov 9 11:03:24 2015
4+
5+
@author: pagan2
6+
"""
7+
8+
#%%
9+
10+
import numpy as np
11+
import hexrd.xrd.material as mat
12+
import hexrd.xrd.crystallography as crys
13+
import hexrd.xrd.transforms_CAPI as trans
14+
import multiprocessing as mp
15+
16+
17+
#%%
18+
19+
20+
material=mat.Material()
21+
material.beamEnergy=15
22+
material.sgnum=227
23+
material.latticeParameters=[5.4310,]
24+
material.name='Silicon'
25+
26+
#%%
27+
28+
samplePos=np.array([[0],[0],[0]])
29+
crysPos=np.array([[0],[0],[0]])
30+
rMat_c=np.identity(3)
31+
bMat=material.planeData.latVecOps['B']
32+
wavelength=material.planeData.wavelength
33+
34+
material.planeData.t
35+
36+
#%%
37+
omega0,omega1=trans.oscillAnglesOfHKLs(material.planeData.hkls.T, 0, rMat_c, bMat, wavelength)
38+
39+
40+
41+
42+
#%%
43+
44+
def VirtDiffWorker
45+
46+
47+
48+

0 commit comments

Comments
 (0)