Repository navigation
Add optional separate viewer rows for each payload length - #2170
Open
Solarboaters wants to merge 2 commits into
Open
Solarboaters wants to merge 2 commits into
Solarboaters wants to merge 2 commits into
Conversation
Collaborator
AI Review: Add optional separate viewer rows for each payload lengthThe Findings
With these changes, removing the tuple key, ignoring the extended flag, always splitting by length, inverting the flag, or dropping the Verdictrequest changes |
Signed-off-by: Andrew Jessop <354059055+Solarboaters@users.noreply.github.com>
Contributor
Author
|
Updated in 33e851d: the reported sequence now checks both default and separate-DLC behaviour, redundant assertions are removed, and parser checks sit in test_parse_args. Forcing splitting on makes the regression fail; all 10 viewer tests, the full 730-test suite (142 skipped), lint and all five mypy targets pass. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Add opt-in
--separate-dlcrows to the CAN viewer. Frames sharing an identifier with different lengths keep their own payload, count and interval, instead of replacing one another. Standard/extended identifiers remain distinct and sorting remains numeric. Default behaviour is unchanged.Related Issues / Pull Requests
Fixes #1737, following @kgmuzungu's request and suggestion to make this optional.
Type of Change
Checklist
tox). Equivalent configured commands were run directly: full Python 3.12 suite, plus Black/Ruff/Pylint, all five mypy targets, Sphinx HTML and doctests on Python 3.14. The full tox interpreter/platform matrix was not run.Validation
Replayed the reported 0x507 CAN FD sequence with lengths 20/24/32/48/20 through
CanViewer, checking both the unchanged default single-row behaviour and the opt-in separate rows. The updated test fails when row splitting is forced on regardless of the option. Redundant internal-layout and redraw assertions were removed, and option parsing is covered in the existing parser test.Current revision: all 10 viewer tests and two subtests pass; full Python 3.12 suite: 730 passed, 142 skipped, 51 subtests passed. Black, Ruff, Pylint and all five mypy targets pass. The earlier revision also passed Python 3.14 viewer tests and documentation builds; those were not rerun locally for this test-only follow-up. Hosted CI is pending on the updated head.
Tests use generated frames and the existing mocked curses screen; no physical ebike/CAN interface or interactive terminal session was tested.