Hello, this is a test page for LASIO
It may be helpful to watch what is happening in the browser's console. Right click and select inspector.
import lasio
las = lasio.LASFile()
from datetime import datetime
las.well.DATE = datetime.today().strftime('%Y-%m-%d %H:%M:%S')
las.params['ENG'] = lasio.HeaderItem('ENG', value='Kent Inverarity')
las.params['LMF'] = lasio.HeaderItem('LMF', value='GL')
las.other = 'Example of how to create a LAS file from scratch using lasio'
import numpy as np
depths = np.arange(10, 50, 0.5)
synth = np.log10(depths)*5+np.random.random(len(depths))
synth[:8] = np.nan
las.add_curve('DEPT', depths, unit='m')
las.add_curve('SYNTH', synth, descr='fake data')
las.write('scratch_v1.2.las', version=1.2)
las.write('scratch_v2.las', version=2)
print("HEADER PRINTED FROM LASIO!!!!",las.header)
import welly as welly
from welly import Well, Project
w = welly.las.from_lasio(las)
print(f"A: {w}")
print("this is a test statement from Python that will print if no errors above")