Skip to content

Commit

Permalink
BUG: allow some words in df.drop() to be missing
Browse files Browse the repository at this point in the history
This is due to change in xtgeo 3.9.2
  • Loading branch information
jcrivenaes committed Aug 29, 2024
1 parent 5890271 commit 35af710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmu/tools/extract_grid_zone_tops.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def extract_grid_zone_tops(
.map(xtg_well.get_logrecord(xtg_well.zonelogname))
.fillna("Outside")
)
dfs.append(dframe.drop(columns=["TopName", "Q_INCL", "Q_AZI"]))
dfs.append(dframe.drop(columns=["TopName", "Q_INCL", "Q_AZI"], errors="ignore"))

df = pd.concat(dfs)
if alias_file is not None:
Expand Down

0 comments on commit 35af710

Please sign in to comment.