gem/mtoolkit — pull request #46 by gvallarelli (2012-02-23 10:02:17+00:00)
Title: Declustering tests 926075

Addresses: https://bugs.launchpad.net/openquake/+bug/926075

This branch add edge cases tests for the declustering algorithms (i.e. gardner knopoff and afteran). These tests exercise directly the scientific code. Tests are included in a specific folder in this case declustering.

Important changes:

* run_tests, now excludes the qa_tests inside tests folder, it requires **nose-exclude** plugin.

* run_qa_tests, coverage starts from qa_tests package

* refactorings in declustering.py

* extracted constants (methods' name for calculating distance and time windows)
* replaced conditional with polymorphism
* changes in the scientific function (made up by Graeme)