### Navigation

- index
- modules
- next
- previous
- Home »
- Contents »
- InaSAFE’s API documentation »
- Package::safe »
- Package::safe.engine »
- Package::safe.engine.impact_functions_for_testing »

# Module: safe.engine.impact_functions_for_testing.allen_fatality_model

class `safe.engine.impact_functions_for_testing.allen_fatality_model.``EarthquakeFatalityFunction`

  Risk plugin for earthquake damage

  :author Allen :rating 1 :param requires category==’hazard’ and subcategory.startswith(‘earthquake’) and layertype==’raster’ and unit==’MMI’

  :param requires category==’exposure’ and subcategory.startswith(‘population’) and layertype==’raster’

  static `run`(layers, a=0.97429, b=11.037)

    Risk plugin for earthquake fatalities

    Input
      layers: List of layers expected to contain
        H: Raster layer of MMI ground shaking P: Raster layer of population data on the same grid as H

This module forms part of the InaSAFE tool.

### Navigation

- index
- modules
- next
- previous
- Home »
- Contents »
- InaSAFE’s API documentation »
- Package::safe »
- Package::safe.engine »
- Package::safe.engine.impact_functions_for_testing »