@@ -566,7 +566,7 @@ def get_rgb_meta(source, bands=None, **kwargs):
566566 # Pick the first, middle, and last bands
567567 n = source .shape [- 1 ]
568568 bands = [0 , n // 2 , n - 1 ]
569- rgb = source .read_bands (bands ).astype (np . float )
569+ rgb = source .read_bands (bands ).astype (float )
570570 meta ['bands' ] = bands
571571 else :
572572 # It should be a numpy array
@@ -587,7 +587,7 @@ def get_rgb_meta(source, bands=None, **kwargs):
587587 # first, middle, & last bands.
588588 bands = [0 , s [2 ] / 2 , s [2 ] - 1 ]
589589
590- rgb = np .take (source , bands , 2 ).astype (np . float )
590+ rgb = np .take (source , bands , 2 ).astype (float )
591591 if rgb .ndim == 2 :
592592 rgb = rgb [:, :, np .newaxis ]
593593 meta ['bands' ] = bands
@@ -614,14 +614,14 @@ def get_rgb_meta(source, bands=None, **kwargs):
614614 scale .set_range (min (rgb .ravel ()), max (rgb .ravel ()))
615615 rgb3 = np .zeros ((s [0 ], s [1 ], 3 ), int )
616616 rgb3 = np .apply_along_axis (scale , 2 , rgb )
617- rgb = rgb3 .astype (np . float ) / 255.
617+ rgb = rgb3 .astype (float ) / 255.
618618 return (_fill_mask (rgb , mask , bg ), meta )
619619 else :
620620 # Only one band of data to display but still need to determine how
621621 # to scale the data values
622622 meta ['mode' ] = 'monochrome'
623623 monochrome = True
624- rgb = np .repeat (rgb , 3 , 2 ).astype (np . float )
624+ rgb = np .repeat (rgb , 3 , 2 ).astype (float )
625625
626626 # Perform any requested color enhancements.
627627
0 commit comments