INNER CODE UNIT · Python

__init__

guma44/GEOparse · src/GEOparse/GEOTypes.py:70

    def __init__(self, name, metadata):
        """Initialize base GEO object.

        Args:
            name (:obj:`str`): Name of the object.
            metadata (:obj:`dict`): Metadata information.

        Raises:
            TypeError: Metadata should be a dict.
        """

        if not isinstance(metadata, dict):
            raise TypeError(
                "Metadata should be a dictionary not a %s" % str(type(metadata))
            )

        self.name = name
        self.metadata = metadata

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…