Commit 4dfee82a authored by Thomas Vincent's avatar Thomas Vincent
Browse files

Avoid numpy 1.20.0rc1 deprecation warning

parent 11d080e4
......@@ -201,7 +201,7 @@ class ScanShift(object):
else:
valid_col = np.full((steps_0 * steps_1,),
True,
dtype=np.bool)
dtype=bool)
if shift_row > 0:
valid_row = row_idx < scan_params['motor_1_steps']
......@@ -210,7 +210,7 @@ class ScanShift(object):
else:
valid_row = np.full((steps_0 * steps_1,),
True,
dtype=np.bool)
dtype=bool)
valid_idx = np.where(np.logical_and(valid_row, valid_col))
......
Supports Markdown
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