Drop

Inheritance diagram of hermespy.core.drop.Drop, hermespy.core.drop.EvaluatedDrop

Drops are the main data structure in HermesPy that represent the results of a full simulation scenario run. It contains all signal models at different states of the signal processing as well as the information generated by the final digtial processing layers.

class Drop(timestamp, device_transmissions, device_receptions)[source]

Bases: Generic[DTT, DRT], HDFSerializable

Drop containing the information transmitted and received by all devices within a scenario.

Parameters:
  • timestamp (float) – Time at which the drop was generated.

  • device_transmissions (Sequence[DTT]) – Transmitted device information.

  • device_receptions (Sequence[DRT]) – Received device information.

property device_receptions: Sequence[DRT]

Received device information within this drop.

property device_transmissions: Sequence[DTT]

Transmitted device information within this drop.

property num_device_receptions: int

Number of device receptions within this drop.

property num_device_transmissions: int

Number of device transmissions within this drop.

property operator_inputs: Sequence[Sequence[Signal]]

Signals feeding into device’s operators during reception.

Returns: Operator inputs.

property timestamp: float

Time at which the drop was generated.

class EvaluatedDrop(timestamp, device_transmissions, device_receptions, artifacts)[source]

Bases: Drop

Drop containing the information transmitted and received by all devices within a scenario as well as their evaluations.

Parameters:
  • timestamp (float) – Time at which the drop was generated.

  • device_transmissions (Sequence[DeviceTransmission]) – Transmitted device information.

  • device_receptions (Sequence[DeviceReception]) – Received device information.

  • artifacts (Sequence[Artifact]) – Evaluation artifacts generated for this scenario drop.

property artifacts: Sequence[Artifact]

Evaluation artifacts generated from the drop’s data.

Returns: List of artifacts.

property num_artifacts: int

Number of evaluation artifacts.

Returns: The number of artifacts.

class DropType

Type of a drop.

alias of TypeVar(‘DropType’, bound=Drop)