asammdf
asammdf copied to clipboard
Adding new channel to existing tabular view causes ValueError
- Select a channel and create a Tabular window
- Use the search dialog to find another channel, click Add Window and choose "Tabular 0"
Result:
<class 'ValueError'>: Length of values (24936) does not match length of index (24883)
File "/Users/jvanthoog/git/asammdf/asammdf/gui/widgets/file.py", line 959, in search
self.add_new_channels(signals, mdi.widget())
File "/Users/jvanthoog/git/asammdf/asammdf/gui/widgets/mdi_area.py", line 255, in add_new_channels
widget.add_new_channels(sigs)
File "/Users/jvanthoog/git/asammdf/asammdf/gui/widgets/tabular_base.py", line 370, in add_new_channels
self.signals[sig.name] = sig
File "/Users/jvanthoog/Library/Python/3.8/lib/python/site-packages/pandas/core/frame.py", line 3607, in __setitem__
self._set_item(key, value)
File "/Users/jvanthoog/Library/Python/3.8/lib/python/site-packages/pandas/core/frame.py", line 3779, in _set_item
value = self._sanitize_column(value)
File "/Users/jvanthoog/Library/Python/3.8/lib/python/site-packages/pandas/core/frame.py", line 4504, in _sanitize_column
com.require_length_match(value, self.index)
File "/Users/jvanthoog/Library/Python/3.8/lib/python/site-packages/pandas/core/common.py", line 527, in require_length_match
raise ValueError(
@jvanthoog please try out the 7.0.3 release