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

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

GitHub user MBoustani opened a pull request:

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

    CLIMATE-448 Use 'dateutil.relativedelta' to get 'next-month' datetime in...

    ... 'decode_time_values' function.
    
    I also added new time_base format to list '%Y-%m-%d %H'.

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

    $ git pull https://github.com/MBoustani/climate CLIMATE-448

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

    https://github.com/apache/climate/pull/47.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 #47
    
----
commit dbef5437c88762eac6df58479ef25f531f2c2ce7
Author: Maziyar Boustani <[email protected]>
Date:   2014-05-28T23:26:18Z

    CLIMATE-448 Use 'dateutil.relativedelta' to get 'next-month' datetime in 
'decode_time_values' function.

----


> 'decode_time_values' on utils.py should be more accurate to get 'next-month'
> ----------------------------------------------------------------------------
>
>                 Key: CLIMATE-448
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-448
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>            Reporter: Maziyar Boustani
>            Assignee: Maziyar Boustani
>
> 'dateutil.relativedelta' library does better on getting 'next-month' 
> dateitme, so need to be replaced with code below.
>  
> {code}
>         for time_val in time_data:
>             print time_val
>             num_days = 30 * time_val
>             times.append(time_base + dt.timedelta(days=num_days))
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to