forked from equinor/xtgeo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEP: Issue deprecation warning for
xtgeo.plot
This also removes the default top-level import so a deprecation warning is not issued.
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
"""The XTGeo plot package""" | ||
# flake8: noqa | ||
|
||
import warnings | ||
|
||
from xtgeo.plot.grid3d_slice import Grid3DSlice | ||
|
||
# flake8: noqa | ||
from xtgeo.plot.xsection import XSection | ||
from xtgeo.plot.xtmap import Map | ||
|
||
warnings.warn( | ||
"xtgeo.plot is deprecated and will be removed in xtgeo 4.0. " | ||
"This functionality now lives in the `xtgeoviz` package.", | ||
DeprecationWarning, | ||
stacklevel=2, | ||
) |