brails.inferers.hazus_inferer_earthquake.hazus_inferer_earthquake module

class brails.inferers.hazus_inferer_earthquake.hazus_inferer_earthquake.HazusInfererEarthquake(input_inventory: AssetInventory, n_possible_worlds=1, seed=1, overwirte_existing=True, yearBuilt_key='YearBuilt', occupancyClass_key='OccupancyClass', numberOfStories_key='NumberOfStories', income_key='Income', planArea_key='PlanArea', splitLevel_key='SplitLevel', heightClass_key='HeightClass', garageType_key='GarageType', constructionClass_key='ConstructionClass', foundationType_key='FoundationType', designLevel_key='DesignLevel', structureType_key='StructureType', replacementCost_key='ReplacementCost', clean_features=False)

Bases: InferenceEngine

To provide variables needed for Hazus damage and loss assessment

Attributes:

Methods:

check_keys(needed_keys, inventory_df, target_key=None, optional_needed_keys=[])
compute_n_possible_worlds(n_possible_worlds)
get_era_height_foundation_class(input_inventory, structureType_key, yearBuilt_key, numberOfStories_key, heightClass_key, designLevel_key, foundationType_key, keys_to_infer)
infer() AssetInventory

Infer new features for the Assets in an Asset Inventory

Args:

input_inventory (AssetInventory): the inventory

Returns:

AssetInventory: a new asset inventory with additional features

merge_two_json(A, B, shrink=False)