def read(self, unit=None, time=None):
    'Read attribute value\n\n        Arguments:\n            unit (int, optional): Unit with which to read plug\n            time (float, optional): Time at which to read plug\n\n        Example:\n            >>> node = createNode("transform")\n            >>> node["ty"] = 100.0\n            >>> node["ty"].read()\n            100.0\n            >>> node["ty"].read(unit=Meters)\n            1.0\n\n        '
    unit = (unit if (unit is not None) else self._unit)
    context = (None if (time is None) else DGContext(time=time))
    try:
        value = _plug_to_python(self._mplug, unit=unit, context=context)
        self._node._state['values'][(self._key, unit)] = value
        return value
    except RuntimeError:
        raise
    except TypeError:
        log.error(("'%s': failed to read attribute" % self.path()))
        raise
Read attribute value

Arguments:
    unit (int, optional): Unit with which to read plug
    time (float, optional): Time at which to read plug

Example:
    >>> node = createNode("transform")
    >>> node["ty"] = 100.0
    >>> node["ty"].read()
    100.0
    >>> node["ty"].read(unit=Meters)
    1.0
def read(self, unit=None, time=None):
    'Read attribute value\n\n        Arguments:\n            unit (int, optional): Unit with which to read plug\n            time (float, optional): Time at which to read plug\n\n        Example:\n            >>> node = createNode("transform")\n            >>> node["ty"] = 100.0\n            >>> node["ty"].read()\n            100.0\n            >>> node["ty"].read(unit=Meters)\n            1.0\n\n        '
    unit = (unit if (unit is not None) else self._unit)
    context = (None if (time is None) else DGContext(time=time))
    try:
        value = _plug_to_python(self._mplug, unit=unit, context=context)
        self._node._state['values'][(self._key, unit)] = value
        return value
    except RuntimeError:
        raise
    except TypeError:
        log.error(("'%s': failed to read attribute" % self.path()))
        raise