# Copyright (c) 2022 Mira Geoscience Ltd.
# This file is part of geoh5py.
# geoh5py is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# geoh5py is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License
# along with geoh5py. If not, see <https://www.gnu.org/licenses/>.
from __future__ import annotations
from .group import Group, GroupType
"""The type for the basic Container group."""
__TYPE_UID = uuid.UUID(
fields=(0x61FBB4E8, 0xA480, 0x11E3, 0x8D, 0x5A, 0x2776BDF4F982)
_name = "Container"
_description = "Container"
def __init__(self, group_type: GroupType, **kwargs):
assert group_type is not None
if self.entity_type.name == "Entity":
self.entity_type.name = "Container Group"
def default_type_uid(cls) -> uuid.UUID: