danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
638 stars 224 forks source link

Exception in tabular mode #815

Closed eblis closed 2 months ago

eblis commented 1 year ago

Python version

Please run the following snippet and write the output here

('python=3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 '
 'bit (AMD64)]')
'numpy=1.23.5'
'asammdf=7.2.0'

MDF version

4.10

Traceback

  File "C:\Users\F4GWHKR\AppData\Local\pypoetry\Cache\virtualenvs\pdp-v6oKkWR0-py3.9\lib\site-packages\asammdf\gui\widgets\file.py", line 855, in search
    self.add_window(["Tabular", signals])
  File "C:\Users\F4GWHKR\AppData\Local\pypoetry\Cache\virtualenvs\pdp-v6oKkWR0-py3.9\lib\site-packages\asammdf\gui\widgets\mdi_area.py", line 1045, in add_window
    return self._add_tabular_window(names)
  File "C:\Users\F4GWHKR\AppData\Local\pypoetry\Cache\virtualenvs\pdp-v6oKkWR0-py3.9\lib\site-packages\asammdf\gui\widgets\mdi_area.py", line 2588, in _add_tabular_window
    tabular = Tabular(signals, start=start, parent=self)
  File "C:\Users\F4GWHKR\AppData\Local\pypoetry\Cache\virtualenvs\pdp-v6oKkWR0-py3.9\lib\site-packages\asammdf\gui\widgets\tabular.py", line 121, in __init__
    super().__init__(signals, ranges)
  File "C:\Users\F4GWHKR\AppData\Local\pypoetry\Cache\virtualenvs\pdp-v6oKkWR0-py3.9\lib\site-packages\asammdf\gui\widgets\tabular_base.py", line 1351, in __init__
    self.tree = DataFrameViewer(df)
  File "C:\Users\F4GWHKR\AppData\Local\pypoetry\Cache\virtualenvs\pdp-v6oKkWR0-py3.9\lib\site-packages\asammdf\gui\widgets\tabular_base.py", line 1963, in __init__
    self.dataView = DataTableView(parent=self)
  File "C:\Users\F4GWHKR\AppData\Local\pypoetry\Cache\virtualenvs\pdp-v6oKkWR0-py3.9\lib\site-packages\asammdf\gui\widgets\tabular_base.py", line 417, in __init__
    self.setDragDropMode(self.NoDragDrop)

<class 'AttributeError'>: 'DataTableView' object has no attribute 'NoDragDrop'

Description

Trying to view some signals in Tabular mode with the GUI

Dependencies

[tool.poetry.group.dev.dependencies]
pyqtgraph = "^0.13.1"
pyside6 = "^6.4.2"
natsort = "^8.2.0"
psutil = "^5.9.4"
pyqtlet2 = "^0.9.2"
eblis commented 1 year ago

Still happens in 7.3.1

danielhrisca commented 12 months ago

@eblis please try the release 7.3.16