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

Modified data slicing in BLFReader for when the object type is CAN_ME… #1825

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pratik-mahamuni
Copy link

Merge request for #1824.

Please accept if it meets your internal standards.
Thank you

pyproject.toml Outdated
@@ -4,7 +4,8 @@ build-backend = "setuptools.build_meta"

[project]
name = "python-can"
dynamic = ["readme", "version"]
dynamic = ["readme"]
version = "4.3.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please undo this. The version is set by setuptools-scm from the git tag.

Copy link
Author

Choose a reason for hiding this comment

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

This is now undone. Please accept if no other problems. Thank you

Copy link
Collaborator

Choose a reason for hiding this comment

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

@pratik-mahamuni the tests are failing

Copy link
Author

Choose a reason for hiding this comment

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

@zariiii9003 modified the method equals from the Message class based on the intricacies of how the tests are modeled in the repository. This change could be deemed temporary as the current implementation of the loggers_test.py uses the same data and constructor for all file types (ASC, BLF, CSV etc.).

As equals is used only in tests and not for logic in the code (based on a quick grep), the small change should not have side-effects. I will let you be the judge for that.

Pratik Mahamuni added 2 commits August 16, 2024 09:57
…hod in the Message class, modified the equal method to make sure that the data being read is equal to the DLC. This is a temporary fix till we agree on what data should be used in the tests, especially pertaining to the BLFReader / BLFWriter constructors
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.

2 participants