[ 
https://issues.apache.org/jira/browse/CLIMATE-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327962#comment-15327962
 ] 

ASF GitHub Bot commented on CLIMATE-796:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/climate/pull/345


> TypeError in temporal_slice function
> ------------------------------------
>
>                 Key: CLIMATE-796
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-796
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>            Reporter: Ibrahim Jarif
>            Assignee: Ibrahim Jarif
>            Priority: Minor
>
> *temporal_slice* function in *dataset_processor* raises TypeError on valid 
> input.
> The lines {code}
> timeStart = min(np.nonzero(target_dataset.times >= start_time_index)[0])
> timeEnd = max(np.nonzero(target_dataset.times <= end_time_index)[0])
> {code} should be
> {code}
> 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])
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to