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

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

GitHub user jarifibrahim opened a pull request:

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

    CLIMATE-796 - TypeError in temporal_slice function

    Fix TypeError in temporal_slice

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jarifibrahim/climate CLIMATE-796

Alternatively you can review and apply these changes as the patch at:

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

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #345
    
----
commit 30c293b1398c5c0efd2dd9b37bd736c40252eae1
Author: Ibrahim <jarifibra...@gmail.com>
Date:   2016-05-30T09:36:03Z

    CLIMATE-796 - TypeError in temporal_slice function
    
    Fix TypeError in temporal_slice

----


> 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