Пример #1
0
    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))
Пример #2
0
    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))
Пример #3
0
    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))
Пример #4
0
 def test_gettingOperator_rpy2(self):
     """
     Test getting the correct smoothing operator
     """
     op = smoothing.get_smooting_operator()
     self.assertTrue(isinstance(op, smoothing.SmoothingR))