Commit 60b10cba authored by Ruxandra Cojocaru's avatar Ruxandra Cojocaru

Fixed tabs in func.py

parent b6289146
......@@ -370,7 +370,7 @@ def check_input(section, path_ini, dt):
['pix_size2', 'float', None, True, True, None],
['diff_wf', 'bool', True, True, False, None],
['undistort', 'bool', False, True, False, None],
['mask_half_size', 'int', 0, True, True, None],
['mask_half_size', 'int', 0, True, True, None],
['path_dark1', 'path', None, True, True, None],
['path_flat1', 'path', None, True, True, None],
['prefix_dark1', 'str', None, True, False, None],
......@@ -2496,15 +2496,15 @@ def build_mask(mask_center, mask_size, grad_shape):
test_err(False, 'build_mask', err_msg)
if(mask_type == 'circ'):
[X1, Y1] = np.meshgrid(np.arange(m), np.arange(n))
X = X1 - center_x
Y = Y1 - center_y
mask0 = np.power(np.square(X) + np.square(Y), 0.5)
mask2 = (mask0 <= (mask_diam/2))
[X1, Y1] = np.meshgrid(np.arange(m), np.arange(n))
X = X1 - center_x
Y = Y1 - center_y
mask0 = np.power(np.square(X) + np.square(Y), 0.5)
mask2 = (mask0 <= (mask_diam/2))
else:
mask2 = np.zeros((n, m))
mask2[(center_y - mask_size[0]) : (center_y + mask_size[0] + 1),
(center_x - mask_size[1]) : (center_x + mask_size[1] + 1)] = 1
mask2 = np.zeros((n, m))
mask2[(center_y - mask_size[0]) : (center_y + mask_size[0] + 1),
(center_x - mask_size[1]) : (center_x + mask_size[1] + 1)] = 1
mask = (mask2 == True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment