File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ def test_stage(ctrl):
59
59
assert stage .a == 45
60
60
61
61
stage .set (x = 0 , y = 0 , z = 0 )
62
- stage .move_in_projection (delta_x = 1 , delta_y = 1 )
62
+ stage .move_in_projection (delta_x = 1000 , delta_y = 1000 )
63
63
64
- assert abs (stage .y ) + abs (stage .z ) == pytest . approx (np .sqrt (2 ))
65
- assert stage .x == 1
64
+ assert abs (stage .y ) + abs (stage .z ) == 1414 # round (np.sqrt(2) * 1000 )
65
+ assert stage .x == 1000
66
66
67
67
stage .set (x = 0 , y = 0 , z = 0 )
68
- stage .move_along_optical_axis (1 )
69
- assert abs (stage .y ) + abs (stage .z ) == pytest . approx (np .sqrt (2 ))
68
+ stage .move_along_optical_axis (delta_z = 1000 )
69
+ assert abs (stage .y ) + abs (stage .z ) == 1414 # round (np.sqrt(2) * 1000 )
70
70
71
71
stage .xy = (0 , 0 )
72
72
stage .move_xy_with_backlash_correction (shift_x = 100 , shift_y = 100 )
You can’t perform that action at this time.
0 commit comments