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

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

GitHub user jarifibrahim opened a pull request:

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

    CLIMATE-800 - TypeError in _rcmes_calc_average_on_new_time_unit

    - Fix TypeError in dataset processor

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

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

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

    https://github.com/apache/climate/pull/347.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 #347
    
----
commit a7009982f45d38542395ab85971975566d556353
Author: Ibrahim <jarifibra...@gmail.com>
Date:   2016-06-03T14:23:30Z

    CLIMATE-800 - TypeError in _rcmes_calc_average_on_new_time_unit
    
    - Fix TypeError in dataset processor

----


> TypeError in  _rcmes_calc_average_on_new_time_unit
> --------------------------------------------------
>
>                 Key: CLIMATE-800
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-800
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>            Reporter: Ibrahim Jarif
>            Assignee: Ibrahim Jarif
>            Priority: Critical
>
> The function has *_rcmes_calc_average_on_new_time_unit* has {code}
> index = np.where(days = day)[0]
> {code}
> It should be 
> {code}
> index = np.where(days == day)[0]
> {code}
> Also the in the following lines the value of year, month, date should be ints
> {code}
> index = np.where(days == day)[0]
>             new_data[it,:] = ma.mean(data[index,:], axis=0)
>             new_date.append(datetime.datetime(year=day/10000, month=(day      
>                                                        % 10000)/100, day=day 
> % 100))
> {code}



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

Reply via email to