#NEWLINE# def test_uint16_type( ) : #NEWLINE# #INDENT# image = Image . init_blank ( [ 100 , 100 ] , dtype = np . uint16 ) #NEWLINE# patch_shape = ( 16 , 16 ) #NEWLINE# landmarks = PointCloud ( np . array ( [ [ 50 , 50.0 ] ] ) ) #NEWLINE# patches = image . extract_patches ( landmarks , patch_shape = patches , as_single_array = False ) #NEWLINE# assert ( patches [ 0 ] . pixels . dtype == np . uint16 )