@@ -369,9 +369,9 @@ def test_to_prestep():
369
369
370
370
xs , y1s , y2s = cbook .pts_to_prestep (x , y1 , y2 )
371
371
372
- x_target = np .asarray ([0 , 0 , 1 , 1 , 2 , 2 , 3 ], dtype = ' float' )
373
- y1_target = np .asarray ([0 , 1 , 1 , 2 , 2 , 3 , 3 ], dtype = ' float' )
374
- y2_target = np .asarray ([3 , 2 , 2 , 1 , 1 , 0 , 0 ], dtype = ' float' )
372
+ x_target = np .asarray ([0 , 0 , 1 , 1 , 2 , 2 , 3 ], dtype = float )
373
+ y1_target = np .asarray ([0 , 1 , 1 , 2 , 2 , 3 , 3 ], dtype = float )
374
+ y2_target = np .asarray ([3 , 2 , 2 , 1 , 1 , 0 , 0 ], dtype = float )
375
375
376
376
assert_array_equal (x_target , xs )
377
377
assert_array_equal (y1_target , y1s )
@@ -394,9 +394,9 @@ def test_to_poststep():
394
394
395
395
xs , y1s , y2s = cbook .pts_to_poststep (x , y1 , y2 )
396
396
397
- x_target = np .asarray ([0 , 1 , 1 , 2 , 2 , 3 , 3 ], dtype = ' float' )
398
- y1_target = np .asarray ([0 , 0 , 1 , 1 , 2 , 2 , 3 ], dtype = ' float' )
399
- y2_target = np .asarray ([3 , 3 , 2 , 2 , 1 , 1 , 0 ], dtype = ' float' )
397
+ x_target = np .asarray ([0 , 1 , 1 , 2 , 2 , 3 , 3 ], dtype = float )
398
+ y1_target = np .asarray ([0 , 0 , 1 , 1 , 2 , 2 , 3 ], dtype = float )
399
+ y2_target = np .asarray ([3 , 3 , 2 , 2 , 1 , 1 , 0 ], dtype = float )
400
400
401
401
assert_array_equal (x_target , xs )
402
402
assert_array_equal (y1_target , y1s )
@@ -419,9 +419,9 @@ def test_to_midstep():
419
419
420
420
xs , y1s , y2s = cbook .pts_to_midstep (x , y1 , y2 )
421
421
422
- x_target = np .asarray ([0 , .5 , .5 , 1.5 , 1.5 , 2.5 , 2.5 , 3 ], dtype = ' float' )
423
- y1_target = np .asarray ([0 , 0 , 1 , 1 , 2 , 2 , 3 , 3 ], dtype = ' float' )
424
- y2_target = np .asarray ([3 , 3 , 2 , 2 , 1 , 1 , 0 , 0 ], dtype = ' float' )
422
+ x_target = np .asarray ([0 , .5 , .5 , 1.5 , 1.5 , 2.5 , 2.5 , 3 ], dtype = float )
423
+ y1_target = np .asarray ([0 , 0 , 1 , 1 , 2 , 2 , 3 , 3 ], dtype = float )
424
+ y2_target = np .asarray ([3 , 3 , 2 , 2 , 1 , 1 , 0 , 0 ], dtype = float )
425
425
426
426
assert_array_equal (x_target , xs )
427
427
assert_array_equal (y1_target , y1s )
0 commit comments