@@ -34,23 +34,23 @@ class PresentationSectionType(str, Enum):
3434
3535
3636class Section :
37- """A :class:`.Scene` can be segmented into multiple Sections.
37+ r """A :class:`.Scene` can be segmented into multiple Sections.
3838 Refer to :doc:`the documentation</tutorials/output_and_config>` for more info.
3939 It consists of multiple animations.
4040
4141 Attributes
4242 ----------
43- type
44- Can be used by a third party applications to classify different types of sections.
45- video
46- Path to video file with animations belonging to section relative to sections directory.
47- If ``None``, then the section will not be saved.
48- name
49- Human readable, non-unique name for this section.
50- skip_animations
51- Skip rendering the animations in this section when ``True``.
52- partial_movie_files
53- Animations belonging to this section.
43+ type\_
44+ Can be used by a third party applications to classify different types of sections.
45+ video
46+ Path to video file with animations belonging to section relative to sections directory.
47+ If ``None``, then the section will not be saved.
48+ name
49+ Human readable, non-unique name for this section.
50+ skip_animations
51+ Skip rendering the animations in this section when ``True``.
52+ partial_movie_files
53+ Animations belonging to this section.
5454
5555 See Also
5656 --------
@@ -59,8 +59,8 @@ class Section:
5959 :meth:`.OpenGLRenderer.update_skipping_status`
6060 """
6161
62- def __init__ (self , type : str , video : str | None , name : str , skip_animations : bool ):
63- self .type = type
62+ def __init__ (self , type_ : str , video : str | None , name : str , skip_animations : bool ):
63+ self .type_ = type_
6464 # None when not to be saved -> still keeps section alive
6565 self .video : str | None = video
6666 self .name = name
@@ -94,7 +94,7 @@ def get_dict(self, sections_dir: Path) -> dict[str, Any]:
9494 return dict (
9595 {
9696 "name" : self .name ,
97- "type" : self .type ,
97+ "type" : self .type_ ,
9898 "video" : self .video ,
9999 },
100100 ** video_metadata ,
0 commit comments