'Returns the scale to the specified unit.
See `to`, except that a Unit object should be given (i.e., no
string), and that all defaults are used, i.e., no
equivalencies and value=1.'

def _to(self, other):

    if (self is other):
        return 1.0
    if isinstance(other, UnitBase):
        self_decomposed = self.decompose()
        other_decomposed = other.decompose()
        if ((self_decomposed.powers == other_decomposed.powers) and all(((self_base is other_base) for (self_base, other_base) in zip(self_decomposed.bases, other_decomposed.bases)))):
            return (self_decomposed.scale / other_decomposed.scale)
    raise UnitConversionError(u"'{0!r}'    is    not    a    scaled    version    of    '{1!r}'".format(self, other))
