Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String data value handling #18

Open
LegrandT opened this issue Jun 3, 2024 · 2 comments
Open

String data value handling #18

LegrandT opened this issue Jun 3, 2024 · 2 comments

Comments

@LegrandT
Copy link

LegrandT commented Jun 3, 2024

Great package!
When testing it, I found out that when the data is actually String data but the type is not specified, the get_channel_data(channel) return a unique joined string of all the values. Any idea how to prevent that ? I know that asammdf could make the separation but not sure how, any views on it ?
An exemple on how the signal look like in asamdf:
<Signal CAN_Name.SignalName:
samples=[b'Lamp_Off' b'Lamp_On' b'Lamp_Off' b'Lamp_Off' b'Lamp_Low'
b'Lamp_On']
timestamps=[5.98369986e-02 3.39207000e-01 3.99315989e-01 6.79330003e-01
7.39497018e-01 1.94965796e+03]
invalidation_bits=None
unit=""
conversion=None
source=None
comment="Light info"
flags="0"
mastermeta="('Time', 1)"
raw=False
display_names={}
attachment=None>

And get_channel_data gives me

"Lamp_OffLamp_OnLamp_OffLamp_OffLamp_LowLamp_On"

@ratal
Copy link
Owner

ratal commented Jun 4, 2024

Just like this, bit difficult to get where is the issue. This is probably a bug.
To progress maybe you can give a screenshot of the channel block with MDFVALIDATOR from Vector or send your file after scrambling it link

@LegrandT
Copy link
Author

LegrandT commented Jun 7, 2024

Here is a screenshot, I hope it helps. Interesting to note that when I get the data through polar dataframe or series it comes out great, but
get_channel_data returns 1 concatenated string

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants