[
https://issues.apache.org/jira/browse/CLIMATE-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327944#comment-15327944
]
ASF GitHub Bot commented on CLIMATE-796:
----------------------------------------
Github user lewismc commented on the issue:
https://github.com/apache/climate/pull/345
+1 please merge into master
> 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)