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

How to jump over the exceptions and generate dataframes as possible during using to_dataframe() method? #1079

Open
shangrilaer opened this issue Sep 14, 2024 · 0 comments

Comments

@shangrilaer
Copy link

Python version

('python=3.11.8 | packaged by Anaconda, Inc. | (main, Feb 26 2024, 21:34:05) '
'[MSC v.1916 64 bit (AMD64)]')
'os=Windows-10-10.0.22631-SP0'
'numpy=1.26.0'
'asammdf=8.0.0'

Code

MDF version

4.1

Code snippet

mdfobj.to_dataframe(
raster = rastertime,
# channels=required_channels,
time_as_date=True,
use_display_names=True,
interpolate_outwards_with_nan=True,
ignore_value2text_conversions=True,
keep_arrays=False,
numeric_1D_only=False
)

Traceback

Exception: can only concatenate str (not "bool") to str
Exception: array-shape mismatch in array 1 ("XXXX_Y")

Description

During I transfering a big mf4 file to pandas dataframe using mdfobj.to_dataframe() ,
There are excepitons because of the MDFfile containing some MAP values maybe.

I'm wondering if there is a way to jump over these exceptions to extract channels possible but not quitting the convention.
:

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

1 participant