gem/oq-engine — pull request #890 by matley (2012-10-11 12:30:42+00:00)
Title: Risklib scenario damage

In this pull request the code of the scenario damage calculator has been extracted to the risklib.
Then, from now on, you need to clone the risklib and to add it to the PYTHONPATH.

Implementation note. To decouple django models from the scientific code we have introduced a FragilityModel#functions_by_taxonomy utility to fetch FragilityFunctions and provide them as a dictionary instead that through the django api backward relationship.