mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-09-09 21:12:42 +02:00
Get all tests passing
This commit is contained in:
@@ -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