- Notifications
You must be signed in to change notification settings - Fork160
Open
Labels
Description
Describe the bug
For some big LAS 3 files reading is very long.
This is due to the regex in lasio/reader.py that searches "_Data" in the section title but in my example the section is "XXX_DATA".
Btw by using this regex it is very fast. Could you implement it ?
[...]elifre.search("_data",stitle.lower()):return"Las3_Data"[...]
To Reproduce
I cannot provide my files for confidential reasons but :
Take a las file:
- with YOURKEY_DATA delimiter for data section
- large amount of data (10k+ lines)
You will see that atm it takes a lot of time.
Expected behavior
Reading should last only a few seconds
Software versions (please complete the following information):
- Python version: 3.10
- Python distribution: conda
- lasio version: 0.31