Skip to content

Commit

Permalink
Merge pull request #237 from gavargas22/fix/lasio-append-curve-bug
Browse files Browse the repository at this point in the history
Fixed a bug where lasio no longer has the method add_curve.
  • Loading branch information
frank1010111 authored Nov 29, 2024
2 parents f3c06c8 + 088d871 commit 5a01e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions welly/las.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def to_lasio(well,
if basis:
df_merged = df_merged.reindex(basis)
try:
l.add_curve('DEPT', df_merged.index.values)
l.append_curve('DEPT', df_merged.index.values)
except:
raise Exception("Please provide an index.")

Expand Down Expand Up @@ -452,7 +452,7 @@ def to_lasio(well,
# take the series, reindex it and transform to np.array
new_data = curve.df[col].reindex(basis).values
descr = getattr(curve, 'description', '')
l.add_curve(mnemonic=key_,
l.append_curve(mnemonic=key_,
data=new_data,
unit=curve.units,
descr=descr)
Expand Down

0 comments on commit 5a01e77

Please sign in to comment.