def delete_statistical_test(self, statistical_test):
        """Deletes a statistical test.

        """
        check_resource_type(statistical_test, STATISTICAL_TEST_PATH,
                            message="A statistical test id is needed.")
        statistical_test_id = get_statistical_test_id(statistical_test)
        if statistical_test_id:
            return self._delete("%s%s" % (self.url, statistical_test_id))
Пример #2
0
    def delete_statistical_test(self, statistical_test):
        """Deletes a statistical test.

        """
        check_resource_type(statistical_test,
                            STATISTICAL_TEST_PATH,
                            message="A statistical test id is needed.")
        statistical_test_id = get_statistical_test_id(statistical_test)
        if statistical_test_id:
            return self._delete("%s%s" % (self.url, statistical_test_id))
    def update_statistical_test(self, statistical_test, changes):
        """Updates an statistical test.

        """
        check_resource_type(statistical_test, STATISTICAL_TEST_PATH,
                            message="A statistical test id is needed.")
        statistical_test_id = get_statistical_test_id(statistical_test)
        if statistical_test_id:
            body = json.dumps(changes)
            return self._update("%s%s" % (self.url, statistical_test_id), body)
Пример #4
0
    def update_statistical_test(self, statistical_test, changes):
        """Updates an statistical test.

        """
        check_resource_type(statistical_test,
                            STATISTICAL_TEST_PATH,
                            message="A statistical test id is needed.")
        statistical_test_id = get_statistical_test_id(statistical_test)
        if statistical_test_id:
            body = json.dumps(changes)
            return self._update("%s%s" % (self.url, statistical_test_id), body)
    def get_statistical_test(self, statistical_test, query_string=''):
        """Retrieves a statistical test.

           The statistical test parameter should be a string containing the
           statisticaltest id or the dict returned by create_statistical_test.
           As an statistical test is an evolving object that is processed
           until it reaches the FINISHED or FAULTY state, the function will
           return a dict that encloses the statistical test values and state
           info available at the time it is called.
        """
        check_resource_type(statistical_test, STATISTICAL_TEST_PATH,
                            message="A statistical test id is needed.")
        statistical_test_id = get_statistical_test_id(statistical_test)
        if statistical_test_id:
            return self._get("%s%s" % (self.url, statistical_test_id),
                             query_string=query_string)
Пример #6
0
    def get_statistical_test(self, statistical_test, query_string=''):
        """Retrieves a statistical test.

           The statistical test parameter should be a string containing the
           statisticaltest id or the dict returned by create_statistical_test.
           As an statistical test is an evolving object that is processed
           until it reaches the FINISHED or FAULTY state, the function will
           return a dict that encloses the statistical test values and state
           info available at the time it is called.
        """
        check_resource_type(statistical_test,
                            STATISTICAL_TEST_PATH,
                            message="A statistical test id is needed.")
        statistical_test_id = get_statistical_test_id(statistical_test)
        if statistical_test_id:
            return self._get("%s%s" % (self.url, statistical_test_id),
                             query_string=query_string)