Uploaded image for project: 'Apache Open Climate Workbench (Retired)'
  1. Apache Open Climate Workbench (Retired)
  2. CLIMATE-800

TypeError in _rcmes_calc_average_on_new_time_unit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      The function has _rcmes_calc_average_on_new_time_unit has

      index = np.where(days = day)[0]
      

      It should be

      index = np.where(days == day)[0]
      

      Also the in the following lines the value of year, month, date should be ints

      index = np.where(days == day)[0]
                  new_data[it,:] = ma.mean(data[index,:], axis=0)
                  new_date.append(datetime.datetime(year=day/10000, month=(day                                                             % 10000)/100, day=day % 100))
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jarifibrahim Ibrahim Jarif
                Reporter:
                jarifibrahim Ibrahim Jarif
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: