Skip to content

Commit fbc0e67

Browse files
author
Eduard Bröcker
committed
possible fix for #892
1 parent fdfd6a6 commit fbc0e67

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/canmatrix/formats/xls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
from canmatrix.Frame import Frame
3838
from canmatrix.Signal import Signal
39-
from canmatrix.CanMatrix import CanMatrix
39+
from canmatrix.CanMatrix import CanMatrix, matrix_class
4040
from canmatrix.Ecu import Ecu
4141
from canmatrix.ArbitrationId import ArbitrationId
4242
from canmatrix.FloatFactory import FloatFactory
@@ -174,7 +174,7 @@ def dump(db, file, **options):
174174
worksheet.col(head_start + 1).width = 5555
175175

176176
frame_hash = {}
177-
if db.type == canmatrix.matrix_class.CAN:
177+
if db.type == matrix_class.CAN:
178178
logger.debug("Length of db.frames is %d", len(db.frames))
179179
for frame in db.frames:
180180
if frame.is_complex_multiplexed:

src/canmatrix/formats/xlsx.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@
3232

3333
import canmatrix
3434
import canmatrix.formats.xls_common
35+
3536
from openpyxl.worksheet.dimensions import ColumnDimension
3637
from openpyxl.styles import NamedStyle, Font, Alignment, PatternFill, Border, Side
3738

3839
from canmatrix.Frame import Frame
3940
from canmatrix.Signal import Signal
40-
from canmatrix.CanMatrix import CanMatrix
41+
from canmatrix.CanMatrix import CanMatrix, matrix_class
4142
from canmatrix.Ecu import Ecu
4243
from canmatrix.ArbitrationId import ArbitrationId
4344

@@ -221,7 +222,7 @@ def dump(db, filename, **options):
221222

222223
write_excel_line(worksheet, 0, 0, row_array, sty_header)
223224

224-
if db.type == canmatrix.matrix_class.CAN:
225+
if db.type == matrix_class.CAN:
225226
frame_hash = {}
226227
logger.debug("DEBUG: Length of db.frames is %d", len(db.frames))
227228
for frame in db.frames:

0 commit comments

Comments
 (0)