caltest.test_caldetector1.test_linearity.
test_linearity_residuals
Calculate the second difference of the linearity corrected ramp for each pixel. If the ramp is perfectly linear they should be zero.