def test_gettingOperator(self): """ Test getting the correct smoothing operator """ op = smoothing.get_smooting_operator(use_linear=True) self.assertTrue(isinstance(op, smoothing.SmoothingLinear)) op = smoothing.get_smooting_operator(use_scikit=True) self.assertTrue(isinstance(op, smoothing.SmoothingPy)) op = smoothing.get_smooting_operator(use_external_r=True, tmpdir="tmp") self.assertTrue(isinstance(op, smoothing.SmoothingRExtern))
def test_gettingOperator(self): """ Test getting the correct smoothing operator """ op = smoothing.get_smooting_operator(use_linear=True) self.assertTrue(isinstance(op, smoothing.SmoothingLinear)) op = smoothing.get_smooting_operator(use_scikit=True) self.assertTrue(isinstance(op, smoothing.SmoothingPy)) op = smoothing.get_smooting_operator(use_external_r=True, tmpdir="tmp") self.assertTrue(isinstance(op, smoothing.SmoothingRExtern))
def test_gettingOperator_rpy2(self): """ Test getting the correct smoothing operator """ op = smoothing.get_smooting_operator() self.assertTrue(isinstance(op, smoothing.SmoothingR)) op = smoothing.getSmoothingObj("splineR") self.assertTrue(isinstance(op, smoothing.SmoothingR))
def test_gettingOperator_rpy2(self): """ Test getting the correct smoothing operator """ op = smoothing.get_smooting_operator() self.assertTrue(isinstance(op, smoothing.SmoothingR))