('python=3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) '
'[MSC v.1916 64 bit (AMD64)]')
'os=Windows-10-10.0.19041-SP0'
'numpy=1.25.2'
'asammdf=7.4.1'
Code
MDF version
4.10
Code snippet
import numpy as np
from asammdf import Signal, MDF
n = 3
t = np.arange(n)
mdf = MDF()
sig = Signal(np.array([b''] * n, dtype=object), t, name='b')
mdf.append(sig)
I have some 4.10 files where some channels are strings of type dtype('S256'). After mdf.to_dataframe they are converted to type object. I then process the data and create a new mdf object to be saved. It fails at mdf.append due to the object type signals.
Should it be possible to append a signal of type object? Or do I need to discard or convert those signals to strings?
Python version
('python=3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) ' '[MSC v.1916 64 bit (AMD64)]') 'os=Windows-10-10.0.19041-SP0' 'numpy=1.25.2' 'asammdf=7.4.1'
Code
MDF version
4.10
Code snippet
Traceback
Description
Hi Daniel,
I have some 4.10 files where some channels are strings of type dtype('S256'). After
mdf.to_dataframe
they are converted to type object. I then process the data and create a new mdf object to be saved. It fails atmdf.append
due to the object type signals.Should it be possible to append a signal of type object? Or do I need to discard or convert those signals to strings?