def convert(self, value, units, newunits):
        """
        Converts a value expressed in certain *units* to a new units.
        """
        return value * self._units[units] / self._units[newunits]
Converts a value expressed in certain *units* to a new units.