def from_task(cls, task):
        """Create a new target representing a task and its parameters

        Args:
            task: Task instance to create target for; the task class has to inherit
                from :class:`ozelot.tasks.TaskBase`.

        Returns:
            ozelot.tasks.ORMTarget: a new target instance
        """
        target = cls(name=task.get_name(),
                     params=task.get_param_string())

        return target
Create a new target representing a task and its parameters

        Args:
            task: Task instance to create target for; the task class has to inherit
                from :class:`ozelot.tasks.TaskBase`.

        Returns:
            ozelot.tasks.ORMTarget: a new target instance