ebroecker / canmatrix

Converting Can (Controller Area Network) Database Formats .arxml .dbc .dbf .kcd ...
BSD 2-Clause "Simplified" License
907 stars 400 forks source link

converting dbc <=> xls <=> dbc #5

Closed nexulm closed 8 years ago

nexulm commented 8 years ago

converting a dbc to xls and vice versa back to dbc again without changing anything I get this fault:

Traceback (most recent call last): File "convert.py", line 65, in dbs["default"] = im.importXls(infile) File "/cygdrive/v/CANtools/canmatrix/library/importxls.py", line 217, in importXls newSig._factor = float(factor) ValueError: could not convert string to float: degree

ebroecker commented 8 years ago

found a small bug, please try xls->dbc again...

nexulm commented 8 years ago

OK, it's working now (again)! I'm currently confused that the output dbc file has "default_" as prefix (=> "default_output.dbc").

ebroecker commented 8 years ago

OK, thanks for testing and finding bugs :-)

yes the "default" is confusing. This is because .arxml can contain multiple can-configurations and the importers all use the same api.

ebroecker commented 8 years ago

fixed 'default'-issue