@classmethod
def enforce_unitscheck(cls, val):
    """If `val` is True, adjust Quantity objects to correct units. If *val* is False, ignore units."""
    if val:
        cls.unitscheck = cls._unitscheck
    else:
        cls.unitscheck = cls._unitsignore
