@classmethod
def validate_exported_energy(cls, measures):
    """
        Check if there are ProfileHour with energy != 0 in periods with RE coefficient == 0
        :param measures: A list ProfileHour objects
        :return valid: A boolean that indicates if all the profiles in measures are valid
        :return invalid_profiles: A list containing the invalid profiles in measures
        """
    valid = True
    invalid_profiles = []
    coefficients = cls.get_range(min(measures).date, max(measures).date)
    for measure in measures:
        if measure[1] != 0:
            cof = False
            for c in coefficients:
                if c.hour == measure[0]:
                    cof = c
                    break
            if cof:
                if cof.cof['A'] == 0:
                    invalid_profiles.append(measure)
                    valid = False
    return valid, invalid_profiles
