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

TypeError in temporal_slice function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      temporal_slice function in dataset_processor raises TypeError on valid input.
      The lines

      timeStart = min(np.nonzero(target_dataset.times >= start_time_index)[0])
      timeEnd = max(np.nonzero(target_dataset.times <= end_time_index)[0])
      

      should be

      timeStart = min(np.nonzero(target_dataset.times >= target_dataset.times[start_time_index])[0])
      timeEnd = max(np.nonzero(target_dataset.times <= target_dataset.times[end_time_index])[0])
      
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: