Custom Options for EDS file#615
Conversation
Allowed to Read/Write options not defined by the EDS Standard.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Thanks for adding custom options support! I reviewed the changes and have a few observations: 1. Duplicate For
The second call overwrites the first. One of them should be removed. Since 2. The list is missing at least:
Any standard option not in this list will incorrectly end up in 3. No tests It would be great to add a test that:
4. Typo fix should be a separate commit The |
Vector CANeds tool groups all unknown options contained in an EDS File in a dedicated section called "Unknown Entries".
We use that section to save additional information that is not considered by the CANopen specifications (for example: unit, factor, offset, category, etc.), and so I had to modify this library to read and write those options.
If you open a file that contains unknown option names, they will be grouped in the "custom_options" dictionary.
If you desire to save a value with a specific option name, you can update the "custom_options" dictionary accordingly.
P.S.: In the meantime, I've improved some of the bad code.