Using lasio.read() , read commented out lines(#) and preserve those lines while writing to Las

15 Views Asked by At

I want to read a LAS file, make some changes in well, curve, parameter and other sections and write them back to LAS files.

But the issue is during writing operation all commented out lines are getting removed as they were not read by lasio at first place.

Is there some way in lasio to read commented out lines?

1

There are 1 best solutions below

1
Karan Shishoo On

As per the lasio docs here you can set a flag to change the default functionality of ignoring commented out lines using remove_data_line_filter='#' as an argument in the read function