Repository navigation
Fix integer granularity in EDS device information - #688
Open
timothyanderson096-ocdealcheck wants to merge 1 commit into
Open
timothyanderson096-ocdealcheck wants to merge 1 commit into
timothyanderson096-ocdealcheck wants to merge 1 commit into
Conversation
Import Granularity using the existing integer conversion path instead of reducing nonzero values to a Boolean. This preserves Granularity=8 through both EDS and DCF export. Add integer/missing-field import cases, both export formats, and Boolean-flag controls. Prepared with OpenAI Codex assistance and independent inspection. Timothy Anderson — Spotted Ridge Engineering / OC Labs Independent software verification · GDN (Global Decision Network) timothyanderson096@gmail.com · https://github.com/timothyanderson096-ocdealcheck/gdn-engineering-benchmarks
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.
The existing sample EDS declares
Granularity=8, but importing converts it toTrueand exporting writesGranularity=1. Parse this DeviceInfo property through the existing integer path, matching itsOptional[int]declaration.Changes one conversion-table entry and adds three regression methods for decimal/hexadecimal values, exact integer types, missing granularity, both EDS/DCF exports, and unchanged Boolean flags.
Validation on Linux / CPython 3.12.14 with project-compatible pytest 8.4.2 and pytest-cov 5.0.0:
db_export/ canmatrix 1.3.3: 284 passed, zero skips.Exact tested head:
406b99737448e45a9884b7fc09d9e8889abdf064, based on current upstream14b3336bc973023e82325426adf6d71046ebcf55. No hardware or hosted CI result is claimed.Prepared with OpenAI Codex assistance and independent inspection.
Timothy Anderson — Spotted Ridge Engineering / OC Labs
Independent software verification · GDN (Global Decision Network)
timothyanderson096@gmail.com · Engineering evidence