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 probabilistoc risk assessment.

Attributes

name : str

The name of the event.

description : str, default=""

The description of the event.

mode : Mode, default=Mode.risk

The mode of the event.

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 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.

Back to top