aind_behavior_curriculum.curriculum.create_curriculum¶
- aind_behavior_curriculum.curriculum.create_curriculum(name: str, version: str, tasks: Iterable[Type[Task]], pkg_location: str | None = None) Type[Curriculum][source]¶
Creates a new curriculum model with the specified name, version, and tasks. :param name: The name of the curriculum. :type name: str :param version: The version of the curriculum, following semantic versioning. :type version: str :param tasks: An iterable of Task types to be included in the curriculum. :type tasks: Iterable[Type[Task]] :param pkg_location: Optional package location string. :type pkg_location: Optional[str]
- Returns:
A new curriculum model type.
- Return type:
Type[Curriculum]
- Raises:
ValueError – If no tasks are provided.