def test_one_image_peak():
 image = np.ones((5, 5))
 image[(2, 2)] = 2
 mask = (np.ones((5, 5)) * 3)
 assert_close(reconstruction(image, mask), 2)

def test_one_image_peak ( ) : image = np . ones ( ( 5 , 5 ) ) image [ ( 2 , 2 ) ] = 2 mask = ( np . ones ( ( 5 , 5 ) ) * 3 ) assert_close ( reconstruction ( image , mask ) , 2 )
test reconstruction with one peak pixel .