def _make_hours(store_hours):
  """Store hours is a dictionary that maps a DOW to different open/close times
     Since it's easy to represent disjoing hours, we'll do this by default
     Such as, if a store is open from 11am-2pm and then 5pm-10pm
     We'll slice the times in to a list of floats representing 30 minute intevals
     So for monday, let's assume we have the store hours from 10am - 3pm
     We represent this as
     monday = [10.0, 10.5, 11.0, 11.5, 12.0, 12.5, 13.0, 13.5, 14.0, 14.5]
  """
  week_hrs = {}
  for dow in store_hours.keys():
    dow_hours = []
    for hour_set in store_hours[dow]:
      if 2 < len(hour_set):
        open_hr = 0.0
        close_hr = 24.0
      else:
        open_hr = float(hour_set[0])
        close_hr = float(hour_set[1])
      if close_hr < open_hr:
        tmp = close_hr
        close_hr = open_hr
        open_hr = tmp
      current_hr_it = open_hr
      while((close_hr - current_hr_it) >= .5):
        dow_hours.append(current_hr_it)
        current_hr_it += .5
    week_hrs[dow] = dow_hours
  return week_hrs
dataset/ETHPy150Open googlearchive/appengine-24hrsinsf-python/models.py/_make_hours/swapped operands of `<`