#NEWLINE# def test_byte_order_median( ) : #NEWLINE# #INDENT# 'Regression test for #413: median_filter does not handle bytes orders.' #NEWLINE# a = np . arange ( 9 , dtype = '<f4' ) . reshape ( 3 , 3 ) #NEWLINE# ref = ndimage . filters . median_filter ( a , ( 3 , 3 ) ) #NEWLINE# b = np . arange ( 9 , dtype = '>f4' ) . reshape ( 3 , 3 ) #NEWLINE# t = ndimage . filters . median_filter ( b , ( 3 , 3 ) ) #NEWLINE# assert_array_almost_equal ( ref , t )