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

Support input of multiple DBC files #113

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

erikbosch
Copy link
Contributor

No description provided.

Copy link
Contributor

@lukasmittag lukasmittag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I did:

  • Ran against databroker with new option --dbcfile .dbc,.dbc
  • Ran against databroker speciying .dbc,.dbc in the config file

dbc2val/Readme.md Show resolved Hide resolved
dbc2val/dbcfeederlib/dbcparser.py Show resolved Hide resolved
Copy link
Contributor

@lukasmittag lukasmittag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Tested with command line argument and config works but have a minor comment see below

self.db = cantools.database.load_file(filename, strict=use_strict_parsing)
first = False
else:
log.info("Adding definitions from {}".format(filename))
Copy link
Contributor

@lukasmittag lukasmittag Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here you need to check for found_names again, did a test and loading two files says it has loaded the same file but does it anyway after. Or you move the if firtst: .. else part into the else of if filename in found_names:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, right now it just gives a warning, it anyway loads it the second time. I can change so it only loads it once

@lukasmittag lukasmittag merged commit 2b84f5a into eclipse-kuksa:main Jun 30, 2023
@erikbosch erikbosch deleted the erik_dbc branch September 29, 2023 09:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants