MCPcopy Create free account
hub / github.com/PyTables/PyTables / create_group

Method create_group

tables/file.py:938–977  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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,

Callers 15

add_cacheFunction · 0.80
save2Function · 0.80
newdst_groupFunction · 0.80
copy_leafFunction · 0.80
copy_childrenFunction · 0.80
make_test_fileFunction · 0.80
test02_copyMethod · 0.80
populateFileMethod · 0.80
test02f_AppendRowsMethod · 0.80
test02g_AppendRowsMethod · 0.80
populateFileMethod · 0.80

Calls 3

_get_or_create_pathMethod · 0.95
_checkfiltersFunction · 0.85
GroupClass · 0.85

Tested by 15

test02_copyMethod · 0.64
populateFileMethod · 0.64
test02f_AppendRowsMethod · 0.64
test02g_AppendRowsMethod · 0.64
populateFileMethod · 0.64
populateFileMethod · 0.64
test02_copyMethod · 0.64
test03_copyMethod · 0.64
test04_copyMethod · 0.64
test05_copyMethod · 0.64
test05b_copyMethod · 0.64