ekmmeters.py
def assignSeasonSchedule(self, season, month, day, schedule):
        """ Define a single season and assign a schedule

        Args:
            season (int): A :class:`~ekmmeters.Seasons` value or in range(Extent.Seasons).
            month (int): Month 1-12.
            day (int):  Day 1-31.
            schedule (int): A :class:`~ekmmeters.LCDItems` value or in range(Extent.Schedules).

        Returns:
            bool: True on completion and ACK.
        """
        season += 1
        schedule += 1
        if ((season < 1) or (season > Extents.Seasons) or (schedule < 1) or
                (schedule > Extents.Schedules) or (month > 12) or (month < 0) or
                (day < 0) or (day > 31)):
            ekm_log("Out of bounds: month " + str(month) + " day " + str(day) +
                    " schedule " + str(schedule) + " season " + str(season))
            return False

        idx_mon = "Season_" + str(season) + "_Start_Day"
        idx_day = "Season_" + str(season) + "_Start_Month"
        idx_schedule = "Season_" + str(season) + "_Schedule"
        if idx_mon not in self.m_seasons_sched_params:
            ekm_log("Incorrect index: " + idx_mon)
            return False
        if idx_day not in self.m_seasons_sched_params:
            ekm_log("Incorrect index: " + idx_day)
            return False
        if idx_schedule not in self.m_seasons_sched_params:
            ekm_log("Incorrect index: " + idx_schedule)
            return False

        self.m_seasons_sched_params[idx_mon] = month
        self.m_seasons_sched_params[idx_day] = day
        self.m_seasons_sched_params[idx_schedule] = schedule
        return True
def assignSeasonSchedule(self, season, month, day, schedule):
        """ Define a single season and assign a schedule

        Args:
            season (int): A :class:`~ekmmeters.Seasons` value or in range(Extent.Seasons).
            month (int): Month 1-12.
            day (int):  Day 1-31.
            schedule (int): A :class:`~ekmmeters.LCDItems` value or in range(Extent.Schedules).

        Returns:
            bool: True on completion and ACK.
        """
        season += 1
        schedule += 1
        if ((season < 1) or (season > Extents.Seasons) or (schedule < 1) or
                (schedule > Extents.Schedules) or (month > 12) or (month < 0) or
                (day < 0) or (day > 31)):
            ekm_log("Out of bounds: month " + str(month) + " day " + str(day) +
                    " schedule " + str(schedule) + " season " + str(season))
            return False

        idx_mon = "Season_" + str(season) + "_Start_Day"
        idx_day = "Season_" + str(season) + "_Start_Month"
        idx_schedule = "Season_" + str(season) + "_Schedule"
        if idx_mon not in self.m_seasons_sched_params:
            ekm_log("Incorrect index: " + idx_mon)
            return False
        if idx_day not in self.m_seasons_sched_params:
            ekm_log("Incorrect index: " + idx_day)
            return False
        if idx_schedule not in self.m_seasons_sched_params:
            ekm_log("Incorrect index: " + idx_schedule)
            return False

        self.m_seasons_sched_params[idx_mon] = month
        self.m_seasons_sched_params[idx_day] = day
        self.m_seasons_sched_params[idx_schedule] = schedule
        return True
Define a single season and assign a schedule

        Args:
            season (int): A :class:`~ekmmeters.Seasons` value or in range(Extent.Seasons).
            month (int): Month 1-12.
            day (int):  Day 1-31.
            schedule (int): A :class:`~ekmmeters.LCDItems` value or in range(Extent.Schedules).

        Returns:
            bool: True on completion and ACK.