Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Apply asc format since format v8.1#1641

Closed
Tian-Jionglu wants to merge 6 commits intohardbyte:main from
Tian-Jionglu:apply_for_asc_v81
Closed

Apply asc format since format v8.1 #1641
Tian-Jionglu wants to merge 6 commits intohardbyte:main from
Tian-Jionglu:apply_for_asc_v81

Conversation

@Tian-Jionglu
Copy link

@Tian-Jionglu Tian-Jionglu commented Aug 3, 2023

A solution to solve issue #1531.

Mainly include 2 changes in ASCReader class:

  1. extract header when initial ASCReader, to get correct start_time, version, date, etc before iterate the messages. I think this is necessary;
  2. new function _process_fd_can_frame_2 to process CANFD message in ASCFormat since V8.1;

Remaining issue:
some tests can not pass, mainly because after the change, correct absolute timestamp is get when iterate the messages;

Copy link
Collaborator

@Tian-Jionglu Are you still working on the tests? I cannot merge if the tests are failing.

can/io/asc.py Outdated

if version_match:
version = version_match.group("version")
self.version = version
Copy link
Owner

@hardbyte hardbyte Sep 4, 2023

Choose a reason for hiding this comment

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

Consider parsing the version using our existing dependency packaging.

https://packaging.pypa.io/en/latest/version.html

Copy link
Author

Commits to parse the ASC format version using packaging.
Jobs in working: change ASC format test to adjust absolute time.

hardbyte reacted with thumbs up emoji

Copy link
Collaborator

The ASC tests are still failing.

Copy link
Author

When diving into test example, i found my mistake at the start.
The symbolic name issue is not only related to ASC format version. In fact, SymblicName works for symbolic logging at first place.
I'm still looking for example about symblic logging.

I would close this PR in coming days, and start a new PR to inherit the change to fix absolute time in ASC format.
If there is already support about symbolic logging in python-can, please give me a hint.

continue

break
if trigger_match:
Copy link
Collaborator

@zariiii9003 zariiii9003 Jan 14, 2024

Choose a reason for hiding this comment

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

I think the files can contain multiple triggers. Parsing it as part of the header is probably not sufficient.

@pierreluctg pierreluctg added the file-io about reading & writing to files label Feb 28, 2024
Copy link
Author

see PR #1788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@zariiii9003 zariiii9003 zariiii9003 left review comments

@hardbyte hardbyte hardbyte approved these changes

Assignees

No one assigned

Labels

file-io about reading & writing to files

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /