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

EOF Error causes np.reshape errors. #321

Closed
ahype-loves-geoscience opened this issue Apr 26, 2020 · 2 comments · Fixed by #324
Closed

EOF Error causes np.reshape errors. #321

ahype-loves-geoscience opened this issue Apr 26, 2020 · 2 comments · Fixed by #324

Comments

@ahype-loves-geoscience
Copy link

\x1a is a common marker in forigen LAS files.

Files with eof marker of '\x1a' cause lasio read to fail.

with open(row.filename) as file:
lines = file.readlines()

print(lines[-2:])

[' 3849.9290 -999.2500 -999.2500 -999.2500 -999.2500 -999.2500 -999.2500 -999.2500 -999.2500\n', '\x1a']

If I remove it the files load. I found a quick fix of checking if the line start with \x1a but I'm hoping there is more elegant way of doing it.

@kinverarity1
Copy link
Owner

Thanks for reporting this. I'll look into it.

@kinverarity1
Copy link
Owner

kinverarity1 commented May 1, 2020

Oh, GitHub closed it automatically - please let me know if that doesn't fix your issues @ahype-loves-geoscience and @ThomasMGeo

Fix was released in v0.25.1

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

Successfully merging a pull request may close this issue.

2 participants