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

Lidar LAS files do not raise an exception #472

Closed
kinverarity1 opened this issue Jun 24, 2021 · 1 comment
Closed

Lidar LAS files do not raise an exception #472

kinverarity1 opened this issue Jun 24, 2021 · 1 comment
Labels

Comments

@kinverarity1
Copy link
Owner

Describe the bug
Attempting to open a Lidar LAS file results in lasio (slowly) and incorrectly trying to parse it as a Log ASCII Standard file.

To Reproduce
Steps to reproduce the behavior:

  • lasio.read("a_lidar_file.las", ignore_header_errors=True) results in a LASFile object instead of an exception

Expected behavior
An exception should be raised immediately.

Software versions (please complete the following information):

  • Python version: 3.7
  • Python distribution: Anaconda
  • master branch
@kinverarity1
Copy link
Owner Author

In fact, doing this in a Jupyter Notebook for a 33 MB lidar file, completely nuked my notebook server 😭

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

No branches or pull requests

1 participant