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

Slow performance for LAS 3 files which do not use "_Data" for data section headings #589

Open
LouisLvx opened this issue Feb 28, 2024 · 0 comments
Labels

Comments

@LouisLvx
Copy link

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 ?

[...]
elif re.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

Additional context

@LouisLvx LouisLvx added the bug label Feb 28, 2024
@kinverarity1 kinverarity1 changed the title Reading for hours Slow performance for LAS 3 files which do not use "_Data" for data section headings Mar 13, 2024
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