tests.test_piecewise_bicubic_psf module

Class Inheritance Diagram

Inheritance diagram of FloatTestCase, PiecewiseBicubicPSF, TestPiecewiseBicubicPSF

Define unittest test case for the PiecewiseBicubicPSF class.

class tests.test_piecewise_bicubic_psf.TestPiecewiseBicubicPSF(methodName='runTest')[source]

Bases: FloatTestCase

Inheritance diagram of tests.test_piecewise_bicubic_psf.TestPiecewiseBicubicPSF

Make sure the PiecewiseBicubicPSF class functions as expected.

setUp()[source]

Define a set of picewise PSF grids to use during tests.

test_linear()[source]

Test PSFs that is are linear functions of x and/or y work.

test_one()[source]

Make sure that a PSF = 1 everywhere within the grid works.

test_pi()[source]

Make sure that a PSF = 1 everywhere within the grid works.

test_random_single_patch()[source]

Test PSFs equal to random bi-cubic polynomials.

test_zero()[source]

Make sure that all-zero input produces an identically zero PSF.

tests.test_piecewise_bicubic_psf.point_in_grid(point, grid)[source]

Return True iff the point is within grid.