climate-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLIMATE-800) TypeError in _rcmes_calc_average_on_new_time_unit
Date Mon, 13 Jun 2016 19:15:30 GMT

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

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

Github user asfgit closed the pull request at:

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


> 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)

Mime
View raw message