Create a new group. Parameters ---------- where : str or Group The parent group from which the new group will hang. It can be a path string (for example '/level1/leaf5'), or a Group instance (see :ref:`GroupClassDescr`). name : str
(
self,
where: Group | str,
name: str,
title: str = "",
filters: Filters | None = None,
createparents: bool = False,
)
| 936 | return parent |
| 937 | |
| 938 | def create_group( |
| 939 | self, |
| 940 | where: Group | str, |
| 941 | name: str, |
| 942 | title: str = "", |
| 943 | filters: Filters | None = None, |
| 944 | createparents: bool = False, |
| 945 | ) -> Group: |
| 946 | """Create a new group. |
| 947 | |
| 948 | Parameters |
| 949 | ---------- |
| 950 | where : str or Group |
| 951 | The parent group from which the new group will hang. It can be a |
| 952 | path string (for example '/level1/leaf5'), or a Group instance |
| 953 | (see :ref:`GroupClassDescr`). |
| 954 | name : str |
| 955 | The name of the new group. |
| 956 | title : str, optional |
| 957 | A description for this node (it sets the TITLE HDF5 attribute on |
| 958 | disk). |
| 959 | filters : Filters |
| 960 | An instance of the Filters class (see :ref:`FiltersClassDescr`) |
| 961 | that provides information about the desired I/O filters applicable |
| 962 | to the leaves that hang directly from this new group (unless other |
| 963 | filter properties are specified for these leaves). Besides, if you |
| 964 | do not specify filter properties for its child groups, they will |
| 965 | inherit these ones. |
| 966 | createparents : bool |
| 967 | Whether to create the needed groups for the parent |
| 968 | path to exist (not done by default). |
| 969 | |
| 970 | See Also |
| 971 | -------- |
| 972 | Group : for more information on groups |
| 973 | |
| 974 | """ |
| 975 | parentnode = self._get_or_create_path(where, createparents) |
| 976 | _checkfilters(filters) |
| 977 | return Group(parentnode, name, title=title, new=True, filters=filters) |
| 978 | |
| 979 | def create_table( |
| 980 | self, |