Github user jarifibrahim commented on a diff in the pull request:

    https://github.com/apache/climate/pull/361#discussion_r67598737
  
    --- Diff: ocw/dataset_processor.py ---
    @@ -51,107 +53,114 @@ def temporal_subset(month_start, month_end, 
target_dataset, average_each_year=Fa
         """
     
         if month_start > month_end:
    -        month_index = range(month_start,13)
    -        month_index.extend(range(1, month_end+1))
    +        month_index = range(month_start, 13)
    +        month_index.extend(range(1, month_end + 1))
         else:
    -        month_index = range(month_start, month_end+1)
    +        month_index = range(month_start, month_end + 1)
     
         dates = target_dataset.times
         months = np.array([d.month for d in dates])
         time_index = []
         for m_value in month_index:
             time_index = np.append(time_index, np.where(months == m_value)[0])
    -        if m_value == month_index[0]:
    -            time_index_first = np.min(np.where(months == m_value)[0])
    --- End diff --
    
    The `time_index_first` and `time_index_last` variables are not used 
anywhere.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to