Skip to content

Commit 7be64e0

Browse files
committed
TST: Use xtgeo with pinned pandas 2
1 parent cfb1918 commit 7be64e0

3 files changed

Lines changed: 77 additions & 77 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies = [
4242
"pyyaml>=5.3",
4343
"scipy>=1.2",
4444
"xlrd>=1.2",
45-
"xtgeo>=2.15",
45+
"xtgeo>=4.16.2",
4646
]
4747

4848
[project.optional-dependencies]

src/fmu/tools/extract_grid_zone_tops_etc.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,7 @@ def extract_grid_zone_tops(
7777

7878
# Set gridzonelog as zonelog and extract zonation tops from it
7979
xtg_well.zonelogname = gridzonelog
80-
# Ensure writable data; pandas 3 can surface read-only array here.
81-
_series_values = pd.Series.values
82-
pd.Series.values = property(lambda self: self.to_numpy(copy=True))
83-
try:
84-
dframe = xtg_well.get_zonation_points(top_prefix="", use_undef=True).copy()
85-
finally:
86-
pd.Series.values = _series_values
80+
dframe = xtg_well.get_zonation_points(top_prefix="", use_undef=True)
8781

8882
dframe.rename(
8983
columns={

0 commit comments

Comments
 (0)