Ibrahim Jarif created CLIMATE-796:
-------------------------------------
Summary: 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)