Skip to content

Commit

Permalink
DEP: Complete xtgeo 4 grid/gridprop deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Aug 15, 2024
1 parent 38a6e2b commit 5e53116
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 867 deletions.
4 changes: 0 additions & 4 deletions src/xtgeo/grid3d/_grid_wellzone.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def report_zone_mismatch(
well: Well | None = None,
zonelogname: str = "ZONELOG",
zoneprop: GridProperty | None = None,
onelayergrid: Grid | None = None, # redundant; will be computed internally
zonelogrange: tuple[int, int] = (0, 9999),
zonelogshift: int = 0,
depthrange: tuple[int | float, int | float] | None = None,
Expand All @@ -48,9 +47,6 @@ def report_zone_mismatch(
"""
self._xtgformat1()

if onelayergrid is not None:
xtg.warndeprecated("Using key 'onelayergrid' is redundant and can be skipped")

if not isinstance(well, Well):
raise ValueError("Input well is not a Well() instance")

Expand Down
10 changes: 0 additions & 10 deletions src/xtgeo/grid3d/_gridprop_import_roff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

import warnings
from typing import TYPE_CHECKING, Any

import numpy as np
Expand All @@ -24,15 +23,6 @@ def import_roff(
grid: Grid | None = None,
) -> dict[str, Any]:
"""Import ROFF format"""

if name == "unknown":
warnings.warn(
"Using name='unknown' to select first property in roff file"
" is deprecated, use name=None instead",
DeprecationWarning,
)
name = None

result: dict[str, Any] = {}
roff_param = RoffParameter.from_file(pfile._file, name)
result["codes"] = roff_param.xtgeo_codes()
Expand Down
Loading

0 comments on commit 5e53116

Please sign in to comment.