def unit_label(quantity):
    """
    Small function to return a string label that is empty if value is 1.0 or is
    the given number otherwise.
    """
    if quantity.value == 1.0:
        return str(quantity.unit)
    return str(quantity)