Cantools

Latest version: v39.4.13

Safety actively analyzes 688215 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 7

39.0.0rc2

Beware! This is a major release! It contains at least the following API changes:

* The `initial` attribute of `Signal` objects now always holds the initial signal value as a scaled quantity, unifying its semantics with that of `Signal.minimum` and `Signal.maximum`. Previously, `initial` used raw values for databases loaded from DBC files, while using scaled ones for databases loaded from ARXML. (The loaders for other file formats do not currently set the `initial` attribute.)
* The machinery for storing decimal numbers without rounding errors (`*.decimal` attributes) has been removed. In its place small rounding errors in load-store-load cycles are now accepted. To remediate this, the resulting database objects can now be compared approximately using the [`Database.is_similar()`](https://github.com/cantools/cantools/blob/master/cantools/database/can/database.py#L144) method.

What's Changed
* Fix ImportError by zariiii9003 in https://github.com/cantools/cantools/pull/585
* Remove Decimal from docs by zariiii9003 in https://github.com/cantools/cantools/pull/586
* Fix BA_DEF_REL_ with empty STRING by zariiii9003 in https://github.com/cantools/cantools/pull/526
* Run ruff linter in CI by zariiii9003 in https://github.com/cantools/cantools/pull/528
* Update bitstruct to >=8.16.1 by zariiii9003 in https://github.com/cantools/cantools/pull/527
* Check for unused imports by zariiii9003 in https://github.com/cantools/cantools/pull/529
* do not intercept raised exceptions in debug mode by andlaus in https://github.com/cantools/cantools/pull/525
* Make scale and offset attribute of Decimal mandatory by zariiii9003 in https://github.com/cantools/cantools/pull/531
* Activate pyflakes check by zariiii9003 in https://github.com/cantools/cantools/pull/530
* Misc fixes by andlaus in https://github.com/cantools/cantools/pull/541
* Add raw_initial, scaled_initial and raw_invalid to Signal by zariiii9003 in https://github.com/cantools/cantools/pull/536
* Improve error message for encoding with incorrect datatype by zariiii9003 in https://github.com/cantools/cantools/pull/542
* Activate pycodestyle checks by zariiii9003 in https://github.com/cantools/cantools/pull/543
* Add option to generate defines for the Signal names when generating C source. by guy-radford-sunswap in https://github.com/cantools/cantools/pull/548
* Add default signal initialization function to C sources generator by ArseniSoitu in https://github.com/cantools/cantools/pull/552
* move the NamedSignalValue class into its own file by andlaus in https://github.com/cantools/cantools/pull/558
* signal: slightly refactor `scaled_to_raw()` and `raw_to_scaled()` by andlaus in https://github.com/cantools/cantools/pull/557
* remove obsolete checks for Python 2 by andlaus in https://github.com/cantools/cantools/pull/560
* C codegen: minor simplifications by andlaus in https://github.com/cantools/cantools/pull/559
* rename `field` to `signal` by andlaus in https://github.com/cantools/cantools/pull/561
* Implement Conversion Classes by zariiii9003 in https://github.com/cantools/cantools/pull/563
* Fix CAN-FD detection for dbc files by 1atabey1 in https://github.com/cantools/cantools/pull/567
* DBC: parse bus comments even when no DBName specified by mon in https://github.com/cantools/cantools/pull/565
* dbc: dump_string: set GenSigStartValue from Signal.raw_initial by malsyned in https://github.com/cantools/cantools/pull/569
* Activate pyflakes-bugbear and flake8-comprehensions checks by zariiii9003 in https://github.com/cantools/cantools/pull/575
* set name option for multiplexer signal by hyihua in https://github.com/cantools/cantools/pull/579
* Move project configuration to pyproject.toml by zariiii9003 in https://github.com/cantools/cantools/pull/583
* Remove usage of Decimal objects by andlaus in https://github.com/cantools/cantools/pull/555

New Contributors
* guy-radford-sunswap made their first contribution in https://github.com/cantools/cantools/pull/548
* ArseniSoitu made their first contribution in https://github.com/cantools/cantools/pull/552
* malsyned made their first contribution in https://github.com/cantools/cantools/pull/569
* hyihua made their first contribution in https://github.com/cantools/cantools/pull/579

**Full Changelog**: https://github.com/cantools/cantools/compare/38.0.2...39.0.0-rc2

39.0.0rc1

Beware! This is a major release! It contains at least the following API changes:

* The `initial` attribute of `Signal` objects now always holds the initial signal value as a scaled quantity, unifying its semantics with that of `Signal.minimum` and `Signal.maximum`. Previously, `initial` used raw values for databases loaded from DBC files, while using scaled ones for databases loaded from ARXML. (The loaders for other file formats do not currently set the `initial` attribute.)
* The machinery for storing decimal numbers without rounding errors (`*.decimal` attributes) has been removed. In its place small rounding errors in load-store-load cycles are now accepted. To remediate this, the resulting database objects can now be compared approximately using the [`Database.is_similar()`](https://github.com/cantools/cantools/blob/master/cantools/database/can/database.py#L144) method.

What's Changed
* Fix BA_DEF_REL_ with empty STRING by zariiii9003 in https://github.com/cantools/cantools/pull/526
* Run ruff linter in CI by zariiii9003 in https://github.com/cantools/cantools/pull/528
* Update bitstruct to >=8.16.1 by zariiii9003 in https://github.com/cantools/cantools/pull/527
* Check for unused imports by zariiii9003 in https://github.com/cantools/cantools/pull/529
* do not intercept raised exceptions in debug mode by andlaus in https://github.com/cantools/cantools/pull/525
* Make scale and offset attribute of Decimal mandatory by zariiii9003 in https://github.com/cantools/cantools/pull/531
* Activate pyflakes check by zariiii9003 in https://github.com/cantools/cantools/pull/530
* Misc fixes by andlaus in https://github.com/cantools/cantools/pull/541
* Add raw_initial, scaled_initial and raw_invalid to Signal by zariiii9003 in https://github.com/cantools/cantools/pull/536
* Improve error message for encoding with incorrect datatype by zariiii9003 in https://github.com/cantools/cantools/pull/542
* Activate pycodestyle checks by zariiii9003 in https://github.com/cantools/cantools/pull/543
* Add option to generate defines for the Signal names when generating C source. by guy-radford-sunswap in https://github.com/cantools/cantools/pull/548
* Add default signal initialization function to C sources generator by ArseniSoitu in https://github.com/cantools/cantools/pull/552
* move the NamedSignalValue class into its own file by andlaus in https://github.com/cantools/cantools/pull/558
* signal: slightly refactor `scaled_to_raw()` and `raw_to_scaled()` by andlaus in https://github.com/cantools/cantools/pull/557
* remove obsolete checks for Python 2 by andlaus in https://github.com/cantools/cantools/pull/560
* C codegen: minor simplifications by andlaus in https://github.com/cantools/cantools/pull/559
* rename `field` to `signal` by andlaus in https://github.com/cantools/cantools/pull/561
* Implement Conversion Classes by zariiii9003 in https://github.com/cantools/cantools/pull/563
* Fix CAN-FD detection for dbc files by 1atabey1 in https://github.com/cantools/cantools/pull/567
* DBC: parse bus comments even when no DBName specified by mon in https://github.com/cantools/cantools/pull/565
* dbc: dump_string: set GenSigStartValue from Signal.raw_initial by malsyned in https://github.com/cantools/cantools/pull/569
* Activate pyflakes-bugbear and flake8-comprehensions checks by zariiii9003 in https://github.com/cantools/cantools/pull/575
* set name option for multiplexer signal by hyihua in https://github.com/cantools/cantools/pull/579
* Move project configuration to pyproject.toml by zariiii9003 in https://github.com/cantools/cantools/pull/583
* Remove usage of Decimal objects by andlaus in https://github.com/cantools/cantools/pull/555

New Contributors
* guy-radford-sunswap made their first contribution in https://github.com/cantools/cantools/pull/548
* ArseniSoitu made their first contribution in https://github.com/cantools/cantools/pull/552
* malsyned made their first contribution in https://github.com/cantools/cantools/pull/569
* hyihua made their first contribution in https://github.com/cantools/cantools/pull/579

**Full Changelog**: https://github.com/cantools/cantools/compare/38.0.2...39.0.0-rc1

38.0.2

What's Changed
* fix: use __repr__() when adding values to plot by toastbucket in https://github.com/cantools/cantools/pull/514
* Allow cantools.tester to work with multiplexed signals by markrages in https://github.com/cantools/cantools/pull/518
* Relaxed an PDU assert for ARXML format. by PKrza in https://github.com/cantools/cantools/pull/516

New Contributors
* toastbucket made their first contribution in https://github.com/cantools/cantools/pull/514
* markrages made their first contribution in https://github.com/cantools/cantools/pull/518
* PKrza made their first contribution in https://github.com/cantools/cantools/pull/516

**Full Changelog**: https://github.com/cantools/cantools/compare/38.0.1...38.0.2

38.0.1

What's Changed
* Changed relative links to absolute links by erzoe in https://github.com/cantools/cantools/pull/512


**Full Changelog**: https://github.com/cantools/cantools/compare/38.0.0...38.0.1

38.0.0

What's Changed
* Major bump due to minimum required Python version being raised to 3.8
* do no longer use the ncurses module in the dump subparser by andlaus in https://github.com/cantools/cantools/pull/482
* Fix 'Assertation' NameError typo in test_database by Hnasar in https://github.com/cantools/cantools/pull/484
* Add missing crccheck dependency to setup.py by Hnasar in https://github.com/cantools/cantools/pull/485
* Bugfix in handling more than one node mapped attribute per signal by malneni in https://github.com/cantools/cantools/pull/488
* A few bug fixes by zariiii9003 in https://github.com/cantools/cantools/pull/492
* Typing improvements by erzoe in https://github.com/cantools/cantools/pull/495
* Use tox by zariiii9003 in https://github.com/cantools/cantools/pull/494
* Fix CI by andlaus in https://github.com/cantools/cantools/pull/509
* Ensure that only Decimal types are stored in the Signal.decimal attribute by jonmon6691 in https://github.com/cantools/cantools/pull/508
* cantools library import lib from a relative path (unified) by JiapengLi in https://github.com/cantools/cantools/pull/507
* Test on python 3.11, build docs again by zariiii9003 in https://github.com/cantools/cantools/pull/511

New Contributors
* jonmon6691 made their first contribution in https://github.com/cantools/cantools/pull/508
* JiapengLi made their first contribution in https://github.com/cantools/cantools/pull/507

**Full Changelog**: https://github.com/cantools/cantools/compare/37.2.0...38.0.0

37.2.0

What's Changed
* ARXML refactoring preparations by andlaus in https://github.com/cantools/cantools/pull/474
* refactor the ARXML code by andlaus in https://github.com/cantools/cantools/pull/476
* Bugfix: BU_BO_REL causes 'index out of range' error by malneni in https://github.com/cantools/cantools/pull/477
* Add missing Bus import in can/__init__.py by Wetmelon in https://github.com/cantools/cantools/pull/481
* PCAN trace (.trc) format to logreader by tuna-f1sh in https://github.com/cantools/cantools/pull/479

New Contributors
* Wetmelon made their first contribution in https://github.com/cantools/cantools/pull/481

**Full Changelog**: https://github.com/cantools/cantools/compare/37.1.2...37.2.0

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.