[
https://issues.apache.org/jira/browse/CLIMATE-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13678587#comment-13678587
]
Alex Goodman commented on CLIMATE-88:
-------------------------------------
As an update, I would also like to add an additional helper function to misc.py
in rcmes/utils. It would utilize the reshaping trick shown in the benchmarks
script as this is ultimately how many of the loops in metrics.py can be
eliminated. I have updated the benchmarks script to include the proposed
function signature (reshapeMonthlyData), as well as allow it to accept input
arrays of arbitrary shape as long as the first dimension is a multiple of 12,
removing the need for many of the if statements in metrics.py.
> Performance improvements for metrics.py
> ---------------------------------------
>
> Key: CLIMATE-88
> URL: https://issues.apache.org/jira/browse/CLIMATE-88
> Project: Apache Open Climate Workbench
> Issue Type: Improvement
> Components: metrics
> Affects Versions: 0.1-incubating
> Reporter: Alex Goodman
> Assignee: Chris A. Mattmann
> Fix For: 0.1-incubating
>
> Attachments: benchmark_metrics.py
>
>
> The performance for many of the functions in metrics.py can be improved by
> removing some unnecessary loops and utilizing shape manipulation.
> I have attached some example code that benchmarks the differences between the
> original and proposed methodology if you did not see it in the mailing list.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira