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

Fails on LAS file spec version 2.1 (?) #29

Closed
kinverarity1 opened this issue Jul 25, 2015 · 1 comment
Closed

Fails on LAS file spec version 2.1 (?) #29

kinverarity1 opened this issue Jul 25, 2015 · 1 comment
Assignees
Labels

Comments

@kinverarity1
Copy link
Owner

D:\study\2015\las_kgs_test\LAS Files\E-E' LAS Files\Deem\A_Deem_B.las
Traceback (most recent call last):
  File ".\basic_read_test.py", line 20, in <module>
    l = las_reader.read(fn)
  File "d:\work\dewnr\logging_software\las_reader\las_reader\__init__.py", line 5, in read
    return las.LASFile(file)
  File "d:\work\dewnr\logging_software\las_reader\las_reader\las.py", line 132, in __init__
    self.read(file, **kwargs)
  File "d:\work\dewnr\logging_software\las_reader\las_reader\las.py", line 149, in read
    self.well = reader.read_section('~W')
  File "d:\work\dewnr\logging_software\las_reader\las_reader\las.py", line 403, in read_section
    parser = SectionParser(section_name, version=self.version)
  File "d:\work\dewnr\logging_software\las_reader\las_reader\las.py", line 487, in __init__
    section_orders = ORDER_DEFINITIONS[self.version][self.section_name2]
KeyError: 2.1
@kinverarity1
Copy link
Owner Author

Fixed by assuming version < 2 is 1.2 and >= 2 && < 3 is 2.0. Code now gives a warning. See test notebook

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