def initTimeSeriesData(self):
    self.combinedData = []
    #find out if it is the hour cell mode
    hours = [0] #initialize to hr 0
    if not self.temporalDomain.hourCellMode:
      hours = self.temporalDomain.hours

    #find out if it is the day cell mode
    days = [1] #initialize to january 1st
    if not self.temporalDomain.dayCellMode:
      days = self.temporalDomain.days

    #find out if it is year cell mode
    if not self.temporalDomain.yearCellMode:
      years = self.temporalDomain.years  
      tmpData = self.averageData if self.averageData else [0 for i in range(len(years)*len(days)*len(hours))]
    else:
      years = [self.temporalDomain.years[0],self.temporalDomain.years[1-len(self.temporalDomain.years)]]

      if isinstance(self.averageData, list):  #if it is a point    
        dataValue = self.averageData[0] if self.averageData else 0
      else: #if it is a grid
        dataValue = self.averageData if self.averageData else 0
      tmpData = [dataValue for i in range(len(years)*len(days)*len(hours))]

    #combine the data with the time
    dayLen = len(days)
    hourLen = len(hours)
    for i in range(len(years)):
      for j in range(dayLen):
        for k in range(hourLen):
          monthDay = self.getNumericMonthDay(years[i], days[j])
          self.combinedData.append([datetime.datetime(years[i],monthDay[0],monthDay[1],hours[k]),tmpData[i*dayLen+j*hourLen+k]])
  
  #------------------------------------------------------------------------------
  #This function creates a time series plot
  #------------------------------------------------------------------------------
dataset/ETHPy150Open tethysplatform/tethys/tethys_gizmos/lib/fetchclimate/fc_time_series.py/FCTimeSeries.initTimeSeriesData/swapped operands of `-`