Code Monkey home page Code Monkey logo

Comments (4)

eerimoq avatar eerimoq commented on June 7, 2024

The as_-methods are not the primary feature of this package, and should probably be removed since they are not fully functional. Either that, or I should add a limitation in the README notifying the user about their flaws. That said, feel free to implement the missing feature if you find it useful.

from cantools.

dmyger avatar dmyger commented on June 7, 2024

It seems, that exactly for that issue, it would be easy set a high bit for the extended frame in file cantools/db/formats/dbc.py for each case where is used message.frame_id, something like this

    ...
    msg.append(fmt.format(frame_id=message.frame_id | 1<<31 if message.is_extended_frame else 0,
    ...

Instead of removing the working functionality.

from cantools.

eerimoq avatar eerimoq commented on June 7, 2024

Feel free to create a pull request with the change and I'll review and later merge it. Make sure to modify/add tests to ensure the issue is not reintroduced in the future.

from cantools.

eerimoq avatar eerimoq commented on June 7, 2024

Part of release 20.9.0.

from cantools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.