INNER CODE UNIT · Python

get_type

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

    def get_type(self):
        """Get the type of the GEO.

        Returns:
            :obj:`str`: Type attribute of the GEO
        """
        try:
            return self.get_metadata_attribute("type")
        except NoMetadataException:
            return None

    def _get_metadata_as_string(self):
        """Get the metadata as SOFT formatted string."""
        metalist = []
        for metaname, meta in iteritems(self.metadata):
            message = "Single value in metadata dictionary should be a list!"
            assert isinstance(meta, list), message
            for data in meta:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…