-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error while extracting curves, "Data must be 1-dimensional" #405
Comments
Is this perhaps a Pandas error? |
Hi @ErlendHaa, Yes, you are right. It is Pandas error. I am trying to transpose the set of data returned by lis.curves(). Sometimes, the transpose fails, because the data returned by lis..curves() is not in the expected format. I was just wondering if there was any means to format the data returned by lis.curves() so that it can be transposed. Below is the screen shot of working and error data. Both belongs to the same lis file. Code snippet
Output
|
There is nothing wrong with the data, nor the formatting of it. The returned array from If you are force to work with Pandas and not numpy you could: [1] drop the non-scalar curves before creating the dataframe (check the numpy.dtype of each curve) If you want to work with these none-scalar curves I strongly suggest sticking to numpy, because it handles the complexity of the data structure just fine without any weird transformations. |
Hi @ErlendHaa, Regards, |
Yes, they are the same thing. At least conceptually. |
Hi,
|
Hi,
For few of the LIS files, while extracting curve data, it gives the error
Data must be 1-dimensional
.code:
curves = lis.curves(logical_file, format_spec, sample_rate=sample_rate, strict=False)
Is there a way to get around this and fetch the curve data successfully?
Thanks in advance.
-Achyuth
The text was updated successfully, but these errors were encountered: