def test_internal(): exp = (2.0 / np.pi) * (-2.0 / (3.0 * np.pi)) obs = sinc2d(np.pi / 2.0, 3.0 * np.pi / 2.0) assert obs == exp
def test_edge_y(): exp = (2.0 / np.pi) obs = sinc2d(np.pi / 2.0, 0.0) assert obs == exp
def test_corner_xy(): exp = 1.0 obs = sinc2d(0.0, 0.0) assert obs == exp
def test_edge_x(): exp = (-2.0 / (3.0 * np.pi)) obs = sinc2d(0.0, 3.0 * np.pi / 2.0) assert obs == exp