ekmmeters.py
def assignHolidayDate(self, holiday, month, day):
        """ Set a singe holiday day and month in object buffer.

        There is no class style enum for holidays.

        Args:
            holiday (int): 0-19 or range(Extents.Holidays).
            month (int): Month 1-12.
            day (int): Day 1-31

        Returns:
            bool: True on completion.
        """
        holiday += 1
        if (month > 12) or (month < 0) or (day > 31) or (day < 0) or (holiday < 1) or (holiday > Extents.Holidays):
            ekm_log("Out of bounds: month " + str(month) + " day " + str(day) + " holiday " + str(holiday))
            return False

        day_str = "Holiday_" + str(holiday) + "_Day"
        mon_str = "Holiday_" + str(holiday) + "_Month"
        if day_str not in self.m_holiday_date_params:
            ekm_log("Incorrect index: " + day_str)
            return False
        if mon_str not in self.m_holiday_date_params:
            ekm_log("Incorrect index: " + mon_str)
            return False
        self.m_holiday_date_params[day_str] = day
        self.m_holiday_date_params[mon_str] = month
        return True
def assignHolidayDate(self, holiday, month, day):
        holiday += 1
        if (month > 12) or (month < 0) or (day > 31) or (day < 0) or (holiday < 1) or (holiday > Extents.Holidays):
            ekm_log("Out of bounds: month " + str(month) + " day " + str(day) + " holiday " + str(holiday))
            return False

        day_str = "Holiday_" + str(holiday) + "_Day"
        mon_str = "Holiday_" + str(holiday) + "_Month"
        if day_str not in self.m_holiday_date_params:
            ekm_log("Incorrect index: " + day_str)
            return False
        if mon_str not in self.m_holiday_date_params:
            ekm_log("Incorrect index: " + mon_str)
            return False
        self.m_holiday_date_params[day_str] = day
        self.m_holiday_date_params[mon_str] = month
        return True
def assignHolidayDate ( self , holiday , month , day ) : holiday += 1 if ( month > 12 ) or ( month < 0 ) or ( day > 31 ) or ( day < 0 ) or ( holiday < 1 ) or ( holiday > Extents . Holidays ) : ekm_log ( "Out of bounds: month " + str ( month ) + " day " + str ( day ) + " holiday " + str ( holiday ) ) return False day_str = "Holiday_" + str ( holiday ) + "_Day" mon_str = "Holiday_" + str ( holiday ) + "_Month" if day_str not in self . m_holiday_date_params : ekm_log ( "Incorrect index: " + day_str ) return False if mon_str not in self . m_holiday_date_params : ekm_log ( "Incorrect index: " + mon_str ) return False self . m_holiday_date_params [ day_str ] = day self . m_holiday_date_params [ mon_str ] = month return True
Set a singe holiday day and month in object buffer.

        There is no class style enum for holidays.

        Args:
            holiday (int): 0-19 or range(Extents.Holidays).
            month (int): Month 1-12.
            day (int): Day 1-31

        Returns:
            bool: True on completion.
Set a singe holiday day and month in object buffer .