1.1.8.1.2.2.1. cli.cmd_etl.batetl.etl.can_filter.CANFilter

class cli.cmd_etl.batetl.etl.can_filter.CANFilter(ids: list[str], id_pos: int, sampling: dict[str, int] | None = None)

Implements the CAN message filter functionalities

Parameters:
  • _ids – CAN ids which should be filtered

  • _id_pos – Position of the CAN ids in the log file

  • _sampling – Number of specific CAN messages that should be stored

__init__(ids: list[str], id_pos: int, sampling: dict[str, int] | None = None) None

Methods

__init__(ids, id_pos[, sampling])

extend_ids(ids)

Extends the list with CAN ids with respect to the used abbreviations as 201-20F.

filter_msg(msg)

Filters the incoming CAN message with respect to the _ids, _id_pos and _sampling.