Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBC: write cycle time #351

Merged
merged 3 commits into from Oct 13, 2021
Merged

Conversation

andlaus
Copy link
Member

@andlaus andlaus commented Oct 13, 2021

This writes out the cycle times of messages in cantools.database.dump_file(). I also took the liberty of reducing the TTY noise of the tests somewhat...

Andreas Lauser <andreas.lauser@daimler.com>, on behalf of MBition GmbH.
Provider Information

@coveralls
Copy link

coveralls commented Oct 13, 2021

Coverage Status

Coverage decreased (-3.6%) to 92.885% when pulling 7fb7837 on Daimler:DBC_write_cycle_time into 37baa97 on eerimoq:master.

the cycle time is already parsed, it was just not written: The idea of
this patch is to write attributes which are directly represented by
Signal() or Message() objects without relying on the
`{signal,message}.dbc` sub-object. The rationale for this is that the
user might have loaded a database from a file, then manipulated a few
attributes and then writes back a DBC file. (thus,
`{signal,message}.dbc` may be present or not, and the respective
attribute might be defined and consistent with the rest of the object
or not.)

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Oliver Kopp <oliver.kopp@mbition.io>
Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Oliver Kopp <oliver.kopp@mbition.io>
this changes the output level of the logger for most test from DEBUG
to WARNING.. IMO the DEBUG log level only ought to be of interest
during development/debugging but not when running unit tests...

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Oliver Kopp <oliver.kopp@mbition.io>
@juleq
Copy link
Collaborator

juleq commented Oct 13, 2021

Mainly housekeeping covered by tests. Outputting cycle time is good, tty verbosity reduction, too. Merging.

@juleq juleq merged commit d2617c9 into cantools:master Oct 13, 2021
@andlaus andlaus deleted the DBC_write_cycle_time branch October 13, 2021 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants