lasio icon indicating copy to clipboard operation
lasio copied to clipboard

Unexpectedly slow when reading file which only contains a single column in the data section

Open Soumya3276 opened this issue 5 months ago • 6 comments

Describe the bug I was running lasio.read() on few files to get the STAT. value. But there is some files where no data is present in ascii section for respective Measured Depth values. But the lasio.read() not giving any error or exception. It just keeps on running.

To Reproduce Due to security and privacy reasons I cannot upload that file (even any sample file) from my computer. I can attach photograph of a sample file.

Expected behavior I expected if there is some error due to las file not maintaining proper formatting or cases like these, there should be an error to indicate that. So I will be able to handle that error. (e.g. it should give value error or some other error if only one curve is present as in this case.)

Software versions (please complete the following information):

  • Python version: 3.12.1 64bit IMG_20240129_125702-01

  • Python distribution: Miniconda

  • lasio version (import lasio; print(lasio.__version__)) 0.31

Additional context Add any other context about the problem here.

Soumya3276 avatar Jan 29 '24 07:01 Soumya3276