mercedes-benz / odxtools

odxtools is a collection of utilities to interact with the diagnostic functionality of automotive electronic control units using python
MIT License
171 stars 70 forks source link

Not support TABLE-SNREF? #324

Closed lz4v4 closed 1 month ago

lz4v4 commented 1 month ago

when i change the table reference type in the example "somersault.pdx" from "<TABLE-REF ID-REF="somersault.table.last_flip_details" />" to "<TABLE-SNREF SHORT-NAME="last_flip_details"/>"

this error appears:

  File "/Library/Python/3.8/site-packages/odxtools/parameters/tablekeyparameter.py", line 103, in _resolve_snrefs
    self._table = resolve_snref(self.table_snref, tables, Table)
NameError: name 'Table' is not defined
andlaus commented 1 month ago

thanks for your report. can you test if #325 fixes your issue?

lz4v4 commented 1 month ago

thanks for your report. can you test if #325 fixes your issue?

I've tested it, and the fix in #325 works perfectly. Thanks a lot!"