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

merge for release 0.9.4 #621

Merged
merged 157 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
c1f10d5
include LICENSE in source distribution (#365)
danielhrisca May 18, 2019
55a4709
arxml: rx/tx typo fix
ebroecker May 27, 2019
2b7de13
annotate and fix codestyle dbc (#369)
Funth0mas Jun 11, 2019
72472da
Always use Signal.is_little_endian as bool #326 (#371)
Funth0mas Jun 11, 2019
5fac257
Add coding, remove #!python where inappropriate (#370)
Funth0mas Jun 11, 2019
64b0814
annotation cleanup ticket #323 (#372)
Funth0mas Jun 21, 2019
6f76a6f
Update cli doc (inspired by #361) (#373)
Funth0mas Jun 21, 2019
1ccdb5d
fix: xls is using the wrong number for arbitration id (#377)
coccyx00 Jul 13, 2019
b2515cb
add outputformat for Scapy (#378)
ebroecker Jul 23, 2019
7fbd7b1
Dump factor, offset, min, max as float. Load as numeric (#380)
chrisoro Aug 12, 2019
24cf501
ARXML: merge container PDU and Secured PDU support (#384)
ebroecker Aug 13, 2019
ca41831
Iss381 - fix for #381 - wrong default ArbitrationId handling (#386)
ebroecker Aug 13, 2019
26bee83
support for Scapy input file (#387)
ebroecker Aug 14, 2019
6d22479
optional ignoring failures durig character encoding #375 (#388)
ebroecker Aug 14, 2019
d5c5f53
fix for #238 (j1939 Frame setters might raise TypeError) (#389)
ebroecker Aug 19, 2019
60c61f4
Iss385 // Arxml Container support and ARXML refactoring (#390)
ebroecker Aug 19, 2019
f1af9f0
DBC: fix #242. J1939 and FD Frames in dbc
ebroecker Aug 19, 2019
1b026d6
XLSX fixes (#392)
ebroecker Aug 19, 2019
287d01b
fix for #288 (#393)
ebroecker Aug 20, 2019
749642f
switch from optparse to click (#236) (#394)
ebroecker Sep 4, 2019
2974476
[WIP] add Basic cli tests (#395)
ebroecker Sep 10, 2019
d11c0d3
Annotation cleanup #323 (#396)
Funth0mas Sep 17, 2019
d373ff7
Remove cm prefix (#236) (#399)
Funth0mas Sep 18, 2019
21f297d
add muxing support to scapy output; merge PR #398 also (#400)
ebroecker Sep 20, 2019
00bcbe1
[try to] Unify imports (#402)
Funth0mas Oct 14, 2019
b32f64a
[WIP] dump/export wireshark lua can subdissector (#404)
ebroecker Oct 14, 2019
60f09ed
[WIP] cycle_time as generic signal and frame attribute (#405)
ebroecker Oct 18, 2019
ac6111a
Iss407: [dbc] Signal Comments with space bevore semicolon broken impo…
ebroecker Oct 21, 2019
7e431bd
make initial value to a native attribute of Signal class (#408)
ebroecker Oct 23, 2019
cf63b07
[dbf] exended ids corrected
Oct 25, 2019
69647af
optionally allow multiple singals with same name in frame #411 (#412)
ebroecker Oct 28, 2019
2533b68
Fix setup.py for console_scripts (#417)
altendky Oct 29, 2019
a182e95
[WIP] [dbc] Iss413: fix comment reading with whitespaces in front of …
ebroecker Oct 29, 2019
35893aa
convert: selective rx/tx ecu extraction issue #421 (#422)
ebroecker Nov 3, 2019
9aa5db7
[WIP] [ARXML] can_fd info (potentional fix for #410) (#418)
ebroecker Nov 4, 2019
04609a9
[WIP] Auto deploy (#420)
ebroecker Nov 7, 2019
9743332
add submodules doc
ebroecker Nov 8, 2019
6e4000d
update doc to make start_bit more clear in documentation #424
ebroecker Nov 8, 2019
c5e17bc
Merge branch 'master' into development
ebroecker Nov 9, 2019
f161965
[dbc] fix dbc issues (#431)
ebroecker Nov 12, 2019
d537f9c
fix copy_frame
ebroecker Nov 18, 2019
d95f08c
fix for issue #436 (#439)
ebroecker Nov 21, 2019
b8e336b
[convert] add delete_obsolete_ecus (fix for #434) (#438)
ebroecker Nov 21, 2019
b15ce12
[copy] Iss430 better attribute handling (#437)
ebroecker Nov 21, 2019
53ff0f2
fix for #441 (#442)
ebroecker Dec 5, 2019
aae6cda
make old test less loud
ebroecker Dec 18, 2019
96a376d
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Dec 18, 2019
0136afc
Fix some bugs in FIBEX export (#445)
Jan 7, 2020
59db603
Repair more click convert parameters (#451)
Funth0mas Feb 19, 2020
270f409
Fixing issue where we see dictionary attributes change during iterati…
sou1hacker Feb 26, 2020
70b2361
Arxml limits number formats (#457)
ebroecker Mar 3, 2020
7e7e987
fix for #460
ebroecker Mar 12, 2020
eae81ea
fix #460
ebroecker Mar 12, 2020
1808290
Update cli.rst
ebroecker Mar 13, 2020
c82ac89
Check for EOF when parsing enums in a .sym file. Fixes #465 (#468)
Seneda Apr 8, 2020
09c32ea
Log the exception as well when importing a format failed (#467)
uruuru Apr 8, 2020
5915980
Process the .sym file "Title" field. fixes #469 And Fix Enum dictiona…
Seneda Apr 15, 2020
08ec80e
fix for #471 (#473)
ebroecker Apr 21, 2020
9f0f8c3
Fix J1939 PGN getter/setter to use full 18bits. Fixes #474 (#475)
Seneda Apr 24, 2020
954b0aa
Add enumberations as a field to the json file to store the value tabl…
Seneda Apr 25, 2020
4ab128c
Adding changes to allow ArbitrationId classes to be sorted (#466)
sou1hacker May 7, 2020
ef4d76e
Parse sym types (#479)
Seneda May 7, 2020
0caf5fe
Fix sym.dump to export the value_table into the {ENUMS} field of the …
Seneda May 12, 2020
4bf9a77
Accept types which are in the value table as enum sgnals (#482)
Seneda May 24, 2020
4057540
Fix additional case in sym enum export (#486)
Seneda Jun 3, 2020
f72a8d6
[DBF] support j1939 read (#501)
ebroecker Sep 20, 2020
10da46d
possible fix for #490 (#503)
ebroecker Sep 20, 2020
18e4c9d
add tests for issue #424 (#500)
ebroecker Sep 20, 2020
5d66cba
Iss484 (#502)
ebroecker Sep 22, 2020
bdc5c6b
fix ci
ebroecker Sep 25, 2020
d5ea87a
fix ci (#504)
ebroecker Sep 25, 2020
66d718e
fix ci
ebroecker Sep 25, 2020
1f4e65e
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Sep 25, 2020
6e41637
Iss492 (#505)
ebroecker Sep 25, 2020
8a95caa
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Sep 25, 2020
2e42729
Arxml read baudrate (#452)
ForestRupicolous Sep 25, 2020
ead7445
Iss496 (#506)
ebroecker Sep 25, 2020
c6a24f3
Iss499 (#507)
ebroecker Sep 27, 2020
81eac11
[WIP] [arxml] add some basic support for flexray and ethernet data (#…
ebroecker Sep 27, 2020
7a80d6a
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Sep 27, 2020
29a8ef5
Iss509 (#510) dbf fix for exporting empty matrix
ebroecker Sep 28, 2020
bc1f942
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Sep 28, 2020
9bc0cae
Iss496 (#511)
ebroecker Sep 29, 2020
3ac5364
Merge branch 'master' into development
ebroecker Sep 29, 2020
c52ef07
Master (#514)
ebroecker Oct 7, 2020
42cfd3a
Fix sym mux decode, by always treating mux field as unsigned (#517)
Seneda Oct 7, 2020
eecffcc
Log as warning instead of exception (#519)
leosh64 Oct 16, 2020
2e3de94
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Oct 30, 2020
2dd7e85
src/canmatrix.py: fix nested mux with no values (#527)
rfrowe Nov 30, 2020
5b2b43b
add is_fd flag for json output (#532)
DennisRoeck Dec 3, 2020
568ed7d
Iss526 (#536)
ebroecker Dec 20, 2020
63670c5
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Dec 20, 2020
fb0f4a4
Bump lxml from 4.5.2 to 4.6.2 (#539)
dependabot[bot] Jan 14, 2021
ce34efa
Iss535 (#537)
ebroecker Jan 14, 2021
618a8da
Iss522 (#530)
ebroecker Jan 14, 2021
54499ec
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Jan 14, 2021
b981565
Fix ci (#542)
ebroecker Jan 17, 2021
fd8217b
Merge branch 'master' into development
ebroecker Jan 18, 2021
929c950
Merge tag '0.9.3' into development
ebroecker Jan 23, 2021
c0010cf
basic ldf import
ebroecker Jan 23, 2021
70cf576
update requirements for ldfparser
ebroecker Jan 23, 2021
2c26cc2
first implementation for odx import#544
ebroecker Jan 31, 2021
9e16886
start diag frame at byte 1
ebroecker Feb 1, 2021
135d28d
odx service muxer
ebroecker Feb 4, 2021
0e2dd21
odx zwischenstand
ebroecker Feb 10, 2021
acdd5d3
issue #531 Lin Converters
ebroecker Feb 10, 2021
f4476de
odx zwischnstand
ebroecker Feb 13, 2021
fa8c156
Revert "odx zwischnstand"
ebroecker Feb 13, 2021
3178f96
Update xls.py (#549)
Cesare12 Feb 28, 2021
490a783
add direct decode function for python can frames (#548)
ebroecker Feb 28, 2021
3c91e1c
better mux export hanling in sym
ebroecker Mar 4, 2021
b466fe8
Correctly the result if compare two frame with different ID (#552)
annguyen0 Mar 21, 2021
3408c38
Overall code improvements (#555)
JulienGrv Mar 25, 2021
16a6878
improvement dbc to dbf (#556)
annguyen0 Mar 25, 2021
a798bfc
fix issue #547 (#560)
annguyen0 Apr 2, 2021
802ff44
fix issue #559 (#561)
annguyen0 Apr 7, 2021
7de839b
fix initial value setting (#566)
jazi007 Apr 15, 2021
e71416c
Set initial_value to physical value (#567)
pierreluctg Apr 16, 2021
04eff9a
arxml fix (#564)
leixao Apr 16, 2021
f12ef3d
arxml.py: (#569)
jazi007 May 3, 2021
294df87
[arxml]: Use ISignal Name for canmatrix.Signal (#570)
jazi007 May 7, 2021
bedec43
ARXML Replace ArTree with more simple cache
ebroecker May 7, 2021
884116c
add/update doc
ebroecker May 7, 2021
3670029
Arxml refactoring (#571)
ebroecker May 7, 2021
480921c
rework arxml parsing and use Pdu for PDU contained frames (#576)
jazi007 May 19, 2021
3e96b9c
fix convert pdu container (#577)
jazi007 May 20, 2021
5b5627f
Remove prints from the code and add the message to the exception (#578)
pierreluctg Jun 2, 2021
1a6a781
remove duplicated pdus (#583)
jazi007 Jul 6, 2021
1476207
Improve multiplexer JSON output (#585)
pierzchalski Jul 21, 2021
25a8725
Fix typo (#586)
AjinkyaPasalkar Jul 24, 2021
1f7cfb0
bugfix: to get the signals for a pdu you have to use follow_all_ref i…
tainnok Aug 18, 2021
e633eb3
improve logging output to be able to identify problems faster/better …
tainnok Aug 18, 2021
10d03aa
fix for issue #596 (#597)
ebroecker Aug 18, 2021
87de495
Merge branch 'iss531_import_ldf' into development
Aug 18, 2021
2a8c116
Merge remote-tracking branch 'origin/arxml_refactoring' into development
Aug 18, 2021
e9fe22a
fix for #403
Aug 18, 2021
a61d93c
arxml init value may not decoded
Aug 18, 2021
71d0379
fixes #572
Aug 18, 2021
d2fbdaa
arxml helpers
ebroecker Aug 18, 2021
e3fd800
Merge branch 'development' of github.com:ebroecker/canmatrix into dev…
ebroecker Aug 18, 2021
8d38f6a
Merge branch 'iss544_implement_odx_import' into development
ebroecker Aug 18, 2021
a7902dd
Added option calcSignalMax & recalcSignalMax to calculate max value …
Arcola-Kankan Sep 1, 2021
915d07f
Fixed a wrong keypress mistake
Arcola-Kankan Sep 1, 2021
b0edf5f
Removed float conversion before checking if the signal max is zero
Arcola-Kankan Sep 6, 2021
a57edaf
fix PDU container decoding (#605)
jazi007 Oct 8, 2021
bfc57d4
Kankan patch1 (#604)
Arcola-Kankan Oct 8, 2021
d5da8c3
fix tox and continuous integration (#609)
JulienGrv Nov 13, 2021
36b50bb
Fixing Issue#610 :: Custom Signal Attributes are removed due to wrong…
Arcola-Kankan Nov 16, 2021
6a03adc
Kankan patch :: Custom Signal Attributes are removed (#611)
Arcola-Kankan Nov 16, 2021
41b973c
#612 Bugfix formats.xls and formats.xlsx missing method parameters (#…
AlexDLSy Nov 21, 2021
219a19a
Update guess_value method in utils.py (#615)
tobiasandorfer Nov 23, 2021
640453b
Added deleteFloatingSignals , checkFloatingFrames, checkSignalRange,…
Arcola-Kankan Nov 23, 2021
0c0bdbf
Added J1939 to Extended dbc and vice versa
Arcola-Kankan Nov 24, 2021
8ccb76b
feat: add support for Python 3.10 (#619)
JulienGrv Jan 10, 2022
30b366d
arxml: read data related to E2E-protection (#594)
tainnok Jan 11, 2022
014d4a4
Merge branch 'Kankan-Patch1' of https://github.com/ArcolaEnergy/canma…
ebroecker Jan 11, 2022
b8b48bb
Merge branch 'ArcolaEnergy-Kankan-Patch1' into development
ebroecker Jan 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ matrix:
env: TOXENV=old_tests
- python: 3.6
env: TOXENV=mypy
- python: 3.9
- python: 3.10

allow_failures:
- python: 3.6 # until we solve all typing issues
env: TOXENV=mypy

install:
- pip install tox-travis
- pip install -r requirements.tox.txt
- pip install tox tox-travis

script:
- tox
Expand All @@ -41,4 +42,4 @@ deploy:
skip_cleanup: true
on:
tags: true
branch: master
branch: master
25 changes: 13 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
# appveyor.yml - https://www.appveyor.com/docs/lang/python
---
image:
- Visual Studio 2022

skip_branch_with_pr: true

environment:
VENV: "%APPVEYOR_BUILD_FOLDER%\\venv"

matrix:
- TOXENV: dist
- TOXENV: py27
- TOXENV: pypy
- TOXENV: py35
- TOXENV: py36
- TOXENV: py37
- TOXENV: py38
- TOXENV: py39
- TOXENV: py310
- TOXENV: pypy
- TOXENV: pypy3
- TOXENV: dist

matrix:
allow_failures:
Expand All @@ -21,20 +26,16 @@ matrix:
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
init:
- ps: if (Get-ChildItem Env:ENABLE_RDP -ErrorAction SilentlyContinue) {iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))} else {echo RDP not enabled}
- echo "TOXENV- %TOXENV%"

install:
- if "%TOXENV%"=="pypy" choco install python.pypy
- if "%TOXENV%"=="pypy3" choco install python.pypy3
- py -3.6 -m venv "%VENV%"
- "%VENV%\\Scripts\\activate"
- python -c "import sys; print(sys.version)"
- pip install -r requirements.tox.txt
- ps: Update-AppveyorBuild -Version "v$(python get_version.py) b$Env:APPVEYOR_BUILD_NUMBER"
- py -m pip install tox
- ps: Update-AppveyorBuild -Version "v$(py get_version.py) b$Env:APPVEYOR_BUILD_NUMBER"

build_script:
- tox
- tox -e codecov
- py -m tox
- py -m tox -e codecov

artifacts:
- path: "dist\\*"
Expand Down
23 changes: 20 additions & 3 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ Note: in case of ``.arxml`` there can be multiple can databases in.
Thus the target ``target.dbc`` may in this case be called ``BUS-NAME-IN-ARXML_target.dbc``.
There will be one target ``.dbc`` for each database in ``.arxml``.

Note: in case of ``.arxml`` CAN Frames can be in the Container PDU format.
In this case by default all PDU contained frame are converted to multiplexed frame.
This can be avoided with ``--ignorePduContainer/--no-ignorePduContainer`` option and
PDU contained frames will be dropped

You can even convert to the same format:

**convert dbc file to dbc:**
Expand Down Expand Up @@ -206,6 +211,13 @@ this will remove signales ``mySignal`` and ``mySignal2`` in ``source.dbc`` and s
this will load ``source.dbc`` and rename signals ``mySignal`` in ``myNewSignal`` and ``mySignal2`` in ``myNewSignal2``.
The result is stored in ``target.dlc``.

::

$ canconvert --signalNameFromAttrib=CompuMethodName source.ARXML target.dbc

this will load ``source.arxml`` and create ``target.dlc`` while all signals are named from CompuMethodName in ARXML.
Also known values from ARXML are SysSignalName and ISignalName

**canFD:**

::
Expand Down Expand Up @@ -361,6 +373,11 @@ ____________________

rename Signal form databases. (comma separated list) Syntax: --renameSignal=myOldSignal:myNewSignal,mySecondSignal:mySecondNewSignal

--signalNameFromAttrib=ATTRIBUTENAME

change signal_name to given signal attribute Syntax: --signalNameFromAttrib=SysSignalName
Example --signalNameFromAttrib SysSignalName
ARXML known Attributes: SysSignalName, ISignalName, CompuMethodName


* dbc:
Expand Down Expand Up @@ -407,10 +424,10 @@ ____________________

Excel format for startbit of motorola coded signals. Valid values: msb, lsb, msbreverse default msbreverse. [more about starbits...](https://github.com/ebroecker/canmatrix/wiki/signal-Byteorder)

* csv:
* csv/xls/xlsx:

--csvAdditionalSignalAttributes
append additional signal-collums to csv, example:
--additionalSignalAttributes//--additionalFrameAttributes
append additional signal/frame-colums to csv, example:
is_signed,attributes["GenSigStartValue"]


Expand Down
7 changes: 1 addition & 6 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ or

::

$ python setup.py install

and
::

$ pip install -r requirements.txt
$ pip install .

This installs the *canmatrix* package into your python installation.
In addition to the *canmatrix* package there are 2 scripts installed with this package:
Expand Down
22 changes: 0 additions & 22 deletions requirements.test.py2.txt

This file was deleted.

23 changes: 0 additions & 23 deletions requirements.test.py3.txt

This file was deleted.

11 changes: 0 additions & 11 deletions requirements.tox.txt

This file was deleted.

11 changes: 0 additions & 11 deletions requirements.txt

This file was deleted.

35 changes: 21 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
"""

import sys
from setuptools import setup, find_packages
from setuptools import find_packages, setup

import versioneer

doclines = __doc__.split("\n")
Expand All @@ -70,32 +73,37 @@
maintainer = "Eduard Broecker",
maintainer_email = "eduard@gmx.de",
url = "http://github.com/ebroecker/canmatrix",
classifiers = filter(None, classifiers.split("\n")),
classifiers = list(filter(None, classifiers.split("\n"))),
description = doclines[0],
keywords = "CAN dbc arxml kcd dbf sym",
long_description = "\n".join(doclines[2:]),
license = "BSD",
platforms = ["any"],
install_requires = [
"attrs>=18.1.0",
"bitstruct",
install_requires = [
"attrs>=19.2.0",
"click",
"enum34; python_version < '3.4'",
"future",
"pathlib2",
"six",
"typing; python_version < '3.5'",
],
extras_require = {
"arxml": ["lxml"],
"kcd": ["lxml"],
"fibex": ["lxml"],
"xls": ["xlrd", "xlwt"],
"xlsx": ["xlsxwriter"],
"yaml": ["pyyaml"],
"csv": [],
"dbc": [],
"dbf": [],
"fibex": ["lxml"],
"json": [],
"kcd": ["lxml"],
"ldf": ["ldfparser"],
"odx": ["lxml"],
"scapy": [],
"sym": [],
"test": ["coverage", "pytest", "pytest-cov", "tox"],
"test": ["pathlib2; python_version < '3.4'", "pytest"],
"wireshark": [],
"xls": ["xlrd", "xlwt"],
"xlsx": ["xlsxwriter"],
"yaml": ["pyyaml"],
},

packages = find_packages("src"),
Expand All @@ -104,4 +112,3 @@
entry_points={'console_scripts': ['cancompare = canmatrix.cli.compare:cli_compare',
'canconvert = canmatrix.cli.convert:cli_convert']}
)

Loading