You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi, I still getting an error while trying to open las file with las version 2.1
Traceback is the following: las = lasio.read(path_to_las)
<ipython-input-8-31b3ef18c15d> in <module>
----> 1 las = lasio.read(path_to_las)
~/dss/code-envs/python/tsfresh_sparkhonyuk/lib/python3.6/site-packages/lasio/__init__.py in read(file_ref, **kwargs)
39
40 """
---> 41 return LASFile(file_ref, **kwargs)
~/dss/code-envs/python/tsfresh_sparkhonyuk/lib/python3.6/site-packages/lasio/las.py in __init__(self, file_ref, **read_kwargs)
76
77 if not (file_ref is None):
---> 78 self.read(file_ref, **read_kwargs)
79
80 def read(
~/dss/code-envs/python/tsfresh_sparkhonyuk/lib/python3.6/site-packages/lasio/las.py in read(self, file_ref, ignore_data, read_policy, null_policy, ignore_header_errors, ignore_comments, mnemonic_case, index_unit, remove_data_line_filter, **kwargs)
177 ignore_header_errors=ignore_header_errors,
178 mnemonic_case=mnemonic_case,
--> 179 ignore_comments=ignore_comments,
180 )
181
~/dss/code-envs/python/tsfresh_sparkhonyuk/lib/python3.6/site-packages/lasio/reader.py in parse_header_items_section(file_obj, line_nos, version, ignore_header_errors, mnemonic_case, ignore_comments)
561 logger.debug("Line {}: Section title parsed as '{}'".format(line_no + 1, title))
562
--> 563 parser = SectionParser(title, version=version)
564
565 section = SectionItems()
~/dss/code-envs/python/tsfresh_sparkhonyuk/lib/python3.6/site-packages/lasio/reader.py in __init__(self, title, version)
662 defs = defaults.ORDER_DEFINITIONS
663
--> 664 if self.section_name2 in defs[self.version]:
665 section_orders = defs[self.version][self.section_name2]
666 self.default_order = section_orders[0] #
KeyError: 2.1
I am aware of a similar bug, that was supposed to be addressed earlier- #29 (comment) , but still getting such error.
The text was updated successfully, but these errors were encountered:
#491 'Add LAS version 2.1 to defaults plus test', just merged to the https://github.com/kinverarity1/lasio master branch and should fix this issue. Would you able to pull the latest, give it a try with the 2.1 Las file, and let us know if it resolved the issue?
Describe the bug
Hi, I still getting an error while trying to open las file with las version 2.1
Traceback is the following:
las = lasio.read(path_to_las)
I am aware of a similar bug, that was supposed to be addressed earlier- #29 (comment) , but still getting such error.
The text was updated successfully, but these errors were encountered: