EventSet
objects.EventSet()BaseModel describing the expected variables and data types for parameters of EventSet.
An EventSet is a collection of events that can be used to create a scenario and perform a probabilistic risk assessment.
Attributes
name : str-
The name of the event.
description : str-
The description of the event. Defaults to ““.
mode : Mode-
The mode of the event. Defaults to Mode.risk.
sub_events : List[SubEventModel]-
The sub events of the event set.
Methods
| Name | Description |
|---|---|
| load_file | Load object from file. |
| load_sub_events | Load sub events from a list or from a file path. |
load_file
objects.EventSet.load_file(
file_path: Path | str | os.PathLike,
load_all: bool = False,
)Load object from file.
load_sub_events
objects.EventSet.load_sub_events(
sub_events: Optional[List[Event]] = None,
file_path: Optional[Path] = None,
)Load sub events from a list or from a file path.