Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Bugfix Mapper not iterable (#114)
Browse files Browse the repository at this point in the history
j1939reader is using the Mapper as a Iterable, but the functions were missing.
  • Loading branch information
mikehaller committed Jul 3, 2023
1 parent 2b84f5a commit 333e0c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dbc2val/dbcfeederlib/dbc2vssmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,3 +434,9 @@ def get_value_dict(self, can_id):
if can_mapping.last_dbc_value is not None:
res[can_mapping.dbc_name] = can_mapping.last_dbc_value
return res

def __contains__(self, key):
return key in self.dbc2val_mapping.keys()

def __getitem__(self, item):
return self.dbc2val_mapping[item]

0 comments on commit 333e0c9

Please sign in to comment.