def calculateSafeImpact(theLayers, theFunction, theExtent=None, check_integrity=True): """Thin wrapper around the safe calculate_impact function. Args: * theLayers - a list of layers to be used. They should be ordered with hazard layer first and exposure layer second. * theFunction - SAFE impact function instance to be used * theExtent - List of [xmin, ymin, xmax, ymax] the coordinates of the bounding box. * check_integrity - If true, perform checking of input data integrity before running impact calculation Returns: A safe impact function is returned Raises: Any exceptions are propogated """ try: return safe_calculate_impact( theLayers, theFunction, extent=theExtent, check_integrity=check_integrity) except: raise
def calculateSafeImpact(theLayers, theFunction, theExtent=None, check_integrity=True): """Thin wrapper around the safe calculate_impact function. Args: * theLayers - a list of layers to be used. They should be ordered with hazard layer first and exposure layer second. * theFunction - SAFE impact function instance to be used * theExtent - List of [xmin, ymin, xmax, ymax] the coordinates of the bounding box. * check_integrity - If true, perform checking of input data integrity before running impact calculation Returns: A safe impact function is returned Raises: Any exceptions are propogated """ try: return safe_calculate_impact(theLayers, theFunction, extent=theExtent, check_integrity=check_integrity) except: raise
def calculateSafeImpact(theLayers, theFunction): """Thin wrapper around the safe calculate_impact function. Args: * theLayers - a list of layers to be used. They should be ordered with hazard layer first and exposure layer second. * theFunction - SAFE impact function instance to be used Returns: A safe impact function is returned Raises: Any exceptions are propogated """ try: return safe_calculate_impact(theLayers, theFunction) except: raise