unwrap: 3d tested ok

This commit is contained in:
Gregor Thalhammer
2012-05-13 23:45:38 +02:00
committed by Jostein Bø Fløystad
parent 96c293ca85
commit 2cbdef4bb2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def test_unwrap2D():
phi_w_ma/(np.pi*2), phi_ma/(np.pi*2),)
def test_unwrap3D():
x, y, z = np.ogrid[:8, :8, :4]
x, y, z = np.ogrid[:8, :12, :4]
phi = 2*np.pi*(x*0.2 + y*0.1 + z*0.05)
phi_wrapped = np.angle(np.exp(1j*phi))
+1 -1
View File
@@ -11,7 +11,7 @@ def _unwrap3D(float[:,:,::1] array,
unwrap3D(&array[0,0,0],
&unwrapped_array[0,0,0],
&mask[0,0,0],
array.shape[0], array.shape[1], array.shape[2], #TODO: check!!!
array.shape[2], array.shape[1], array.shape[0], #TODO: check!!!
wrap_around_x, wrap_around_y, wrap_around_z,
)