flux_to_flareclass updated to accept astropy Quantity or float as input