Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Detect and raise IOError exception for LiDAR files (fixes #472) #482

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

kinverarity1
Copy link
Owner

Example:

>>> import lasio
>>> lasio.read(r"C:\Users\kinverarity\Downloads\MineralsOF_las (2)\MineralsOF_las\244000_6595000.las")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\devapps\kinverarity\projects\lasio\lasio\__init__.py", line 34, in read
    return LASFile(file_ref, **kwargs)
  File "C:\devapps\kinverarity\projects\lasio\lasio\las.py", line 80, in __init__
    self.read(file_ref, **read_kwargs)
  File "C:\devapps\kinverarity\projects\lasio\lasio\las.py", line 174, in read
    raise IOError("This is a LASer file (i.e. LiDAR data), not a Log ASCII Standard file")
OSError: This is a LASer file (i.e. LiDAR data), not a Log ASCII Standard file

@kinverarity1 kinverarity1 merged commit 02cf79b into master Jul 14, 2021
@kinverarity1 kinverarity1 deleted the lidar-file branch July 14, 2021 07:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant