lasio icon indicating copy to clipboard operation
lasio copied to clipboard

Need Help in understanding if there is a way to read commented out lines without raising header error.

Open Soumya3276 opened this issue 4 months ago • 1 comments

So , I want to achieve something like: In parameter section , if any attribute's value length is more than 64 character I want to comment out that line and write to the las file. Problem I am facing is while reading it is not reading previously commented out attributes in parameter section so when I am writing to the las file it removes those previously commented attributes which I want to keep as it is in my las file only want to modify the new attribute as per logic.

So to do that I have used ignore_comments argument in read function but it raised header error. So I had to use ignore_header_errors. I want to know if there is a way to achieve that without raising header error. Any suggestions will be helpful on how to achieve that.

Python version = 3.18 Windows 10(64bit) Lasio version = 0.31

Picture of code is added IMG_20240220_200953

Soumya3276 avatar Feb 20 '24 15:02 Soumya3276