def __repr__(self):
        if self.units != None:
            xml = '<ColorMap units="%s">' % (self.units)
        else:
            xml = '<ColorMap>'
        for colormap_entry in self.colormap_entries:
            xml = xml + '\n    ' + colormap_entry.__repr__()
        xml = xml + '\n</ColorMap>'
        return xml
dataset/ETHPy150Open nasa-gibs/onearth/src/layer_config/bin/oe_generate_empty_tile.py/ColorMap.__repr__/original