brails.inferers.hazus_inferer_earthquake.hazus_inferer_earthquake module
- class brails.inferers.hazus_inferer_earthquake.hazus_inferer_earthquake.HazusInfererEarthquake(input_inventory, 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()
Infer and add new features for each asset in the inventory.
- Parameters:
input_inventory (AssetInventory) – The inventory of assets to process.
- Returns:
A new or updated inventory with additional inferred features.
- Return type:
- merge_two_json(A, B, shrink=False)