Skip to content

Fault system solution model

fault_system_solution_model

This module defines the dataframe models class FaultSystemSolutionModel.

FaultSystemSolutionModelprovides methods to build pandas dataframes from the raw dataframes available via the InversionSolutionFile class.

Classes

FaultSystemSolutionModel(solution_file: FaultSystemSolutionFile)

Bases: InversionSolutionModel

For analysis of FaultSystemSolutions.

Source code in solvis/solution/fault_system_solution/fault_system_solution_model.py
31
32
33
34
def __init__(self, solution_file: FaultSystemSolutionFile) -> None:
    self._fast_indices: Optional[pd.DataFrame] = None
    self._solution_file: FaultSystemSolutionFile = solution_file
    super().__init__(solution_file)
Attributes
composite_rates property
aggregate_rates property
rupture_sections: DataFrame[RuptureSectionSchema] property
Functions
enable_fast_indices() -> bool

Ensure that the fast_indices dataframe is available.

Source code in solvis/solution/fault_system_solution/fault_system_solution_model.py
58
59
60
61
def enable_fast_indices(self) -> bool:
    """Ensure that the fast_indices dataframe is available."""
    rs = self.rupture_sections  # noqa
    return self._fast_indices is not None