Postprocessors package.
Tip
import like this from safe.postprocessors import get_post_processors and then call get_post_processors(requested_postprocessors)
Creates a dictionary of applicable postprocessor instances
postprocessors such as { ‘Gender’: {‘on’: True}, ‘Age’: {‘on’: True,
- ‘params’: {
‘youth_ratio’: defaults[‘YOUTH_RATIO’], ‘adult_ratio’: defaults[‘ADULT_RATIO’], ‘elder_ratio’: defaults[‘ELDER_RATIO’] }
}
} with ‘PostprocessorName’: {‘on’: True} being the minimum needed to activate a postprocessor. If asked for unimplemented postprocessors, the factory will just skip it returning the valid ones
Returns the human readable name of post processor
This module forms part of the InaSAFE tool.