mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-10-27 02:11:34 +01:00
Get all tests passing
This commit is contained in:
1 parent
25224d4d44
commit
e9e2fd4bee
1 file changed
+1
-1
@@ -57,7 +57,7 @@ def exit_wave_geometry(det_basis, det_shape, wavelength, distance, oversampling=
|
||||
|
||||
# This method should work for a general parallelogram-shaped detector
|
||||
det_shape = det_basis * det_shape.to(t.float32)
|
||||
pinv_basis = t.tensor(np.linalg.pinv(det_shape).transpose()).to(t.float32)
|
||||
pinv_basis = t.linalg.pinv(det_shape).transpose(0,1)
|
||||
real_space_basis = pinv_basis * wavelength * distance
|
||||
|
||||
return real_space_basis
|
||||
|
||||
Reference in new issue
Block a user