def METHOD_NAME(self):
    "Test the half_ccd back and forth"
    spline_file = utilstest.UtilsTest.getimage("halfccd.spline")
    spline = pyFAI.spline.Spline(spline_file)
    logger.debug("xmin %s, xmax %s, ymin %s, ymax",
                 spline.xmin, spline.xmax, spline.ymin, spline.ymax)
    spline.spline2array()
    logger.debug("delta_x: %s", spline.xDispArray.shape)
    logger.debug("delta_y: %s", spline.yDispArray.shape)
    new_spline = spline.flipud(False).fliplr(False).fliplrud(False)
    new_spline.array2spline(smoothing=0.1)
    self.assertLess(abs(new_spline.xDispArray - spline.xDispArray).max(), 1e-6, "X data are OK")
    self.assertLess(abs(new_spline.yDispArray - spline.yDispArray).max(), 1e-6, "Y data are OK")
    self.assertLess(abs(spline.xSplineKnotsX - new_spline.xSplineKnotsX).max(), 1e-6, "xSplineKnotsX data are OK")
    self.assertLess(abs(spline.xSplineKnotsY - new_spline.xSplineKnotsY).max(), 1e-6, "xSplineKnotsY data are OK")
    self.assertLess(abs(spline.xSplineCoeff - new_spline.xSplineCoeff).max(), 1e-6, "xSplineCoeff data are OK")
    self.assertLess(abs(spline.ySplineKnotsX - new_spline.ySplineKnotsX).max(), 1e-6, "ySplineKnotsX data are OK")
    self.assertLess(abs(spline.ySplineKnotsY - new_spline.ySplineKnotsY).max(), 1e-6, "ySplineKnotsY data are OK")
    self.assertLess(abs(spline.ySplineCoeff - new_spline.ySplineCoeff).max(), 1e-6, "ySplineCoeff data are OK")