[ https://issues.apache.org/jira/browse/CLIMATE-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306460#comment-15306460 ]
ASF GitHub Bot commented on CLIMATE-796: ---------------------------------------- Github user OCWJenkins commented on the pull request: https://github.com/apache/climate/pull/345#issuecomment-222457438 Can one of the admins verify this patch? > 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)