WorkProduct manifests generation fails while parsing LAS files
Parsing LAS file in well_logs and well_logs_1_1_0 directories for TNO fails with the following error log for each file:
2024-01-12 15:31:53 ERROR Unable to read laslog file: /home/zhubin/tno-wpc-datasets/well-logs/3938_del08_1994_comp.las
Traceback (most recent call last):
File "/home/zhubin/.local/lib/python3.10/site-packages/lasio/las.py", line 176, in read
assert version in (1.2, 2, None)
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zhubin/open-test-data/rc--3.0.0/2-scripts/load_manifest_scripts/src/loading_manifest/osdu_laslog_manifest.py", line 405, in create_laslog_manifest_from_path
log_data = read_data_from_log_file(full_valid_file_path)
File "/home/zhubin/open-test-data/rc--3.0.0/2-scripts/load_manifest_scripts/src/loading_manifest/osdu_laslog_manifest.py", line 39, in read_data_from_log_file
las = lasio.read(fp)
File "/home/zhubin/.local/lib/python3.10/site-packages/lasio/__init__.py", line 41, in read
return LASFile(file_ref, **kwargs)
File "/home/zhubin/.local/lib/python3.10/site-packages/lasio/las.py", line 77, in __init__
self.read(file_ref, **read_kwargs)
File "/home/zhubin/.local/lib/python3.10/site-packages/lasio/las.py", line 178, in read
if version < 2:
TypeError: '<' not supported between instances of 'str' and 'int'
I tried different version of lasio
in open-test-data/rc--3.0.0/2-scripts/load_manifest_scripts/requirements.txt
file. Using version 0.30 resolved the issue.