[
https://issues.apache.org/jira/browse/CLIMATE-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cameron Goodale resolved CLIMATE-281.
-------------------------------------
Resolution: Fixed
Committed revision 1518315.
> Evaluation Class methods need 'self' added to them
> --------------------------------------------------
>
> Key: CLIMATE-281
> URL: https://issues.apache.org/jira/browse/CLIMATE-281
> Project: Apache Open Climate Workbench
> Issue Type: Sub-task
> Components: analysis
> Affects Versions: 0.2-incubating
> Environment: Mac OS X
> Reporter: Cameron Goodale
> Assignee: Cameron Goodale
> Fix For: 0.3-incubating
>
> Original Estimate: 2h
> Time Spent: 1h
> Remaining Estimate: 1h
>
> While using the Evaluation Class I kept getting this error:
> NameError: global name '_should_run_regular_metrics' is not defined
> I looked at the method, and it should be prepend with 'self.' when calling
> it. I also noticed other private methods didn't include self in their
> function definition.
> _run_no_subregion_evaluation() vs. _run_no_subregion_evaluation(self)
> _should_run_regular_metrics() vs. _should_run_regular_metrics(self)
> This issue will fix these issue by adding more self to the Class definition.
> I also plan to add some new tests to run a couple evaluations and exercise
> the run() method a bit.
--
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