def test_smooth(self): Xout, Yout, Iout=smooth_data(self.settings, self.x, self.y, self.I, callback=self._cb_test) self.assertFalse(self._progress is None) self.assertEqual(Xout.min(), 10) self.assertEqual(Xout.max(), 90) self.assertEqual(Yout.min(), 5) self.assertEqual(Yout.max(), 95) self.assertEqual(Xout.shape, (20, 20)) self.assertEqual(Yout.shape, (20, 20)) self.assertEqual(Iout.shape, (20, 20))
def test_smooth2(self): smooth_data(self.settings, self.x, self.y, self.I, callback=self._cb_test, axis_sigma_scaling=1) smooth_data(self.settings, self.x, self.y, self.I, callback=self._cb_test, axis_sigma_scaling=2) smooth_data(self.settings, self.x, self.y, self.I, callback=self._cb_test, axis_sigma_scaling=3) self.assertFalse(self._progress is None)