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

Improved error message if number of entries in rows are inconsistent #577

Open
lovkush-shell opened this issue Aug 4, 2023 · 0 comments
Labels
data-section-parser A bug or enhancement relating to the data section parser enhancement

Comments

@lovkush-shell
Copy link

lovkush-shell commented Aug 4, 2023

Is your feature request related to a problem? Please describe.

If there are an inconsistent number of entries in different rows, the error message is unhelpful.

Here is example las file where first row incorrectly has two entries:

~Curve Information Block
#MNEM.UNIT                                                                                                                 
D 00:     1  DEPTH
C 01:     2  Caliper
DEN 01:     3  Bulk Density                                                                                                             
~ASCII
 1 0
 2 0 0

The error message I get from Lasio is:

ValueError: Cannot reshape ~A data size (5,) into 3 columns

Describe the solution you'd like
A more helpful error message. Something like "Data in the las file have inconsistent number of entries, e.g. Line 7 has 2 entries '1 0' and Line 8 has 3 entries '2 0 0'

Describe alternatives you've considered
None

Additional context
NA

@kinverarity1 kinverarity1 added enhancement data-section-parser A bug or enhancement relating to the data section parser labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-section-parser A bug or enhancement relating to the data section parser enhancement
Projects
None yet
Development

No branches or pull requests

2 participants