Skip to content

Commit 2a0e637

Browse files
authored
add deprecation warning at epviz import (#1310)
1 parent ae911de commit 2a0e637

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

echopype/visualize/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@
33
44
**NOTE: To use this subpackage. `Matplotlib` and `cmocean` package must be installed.**
55
"""
6+
import warnings
67
from .api import create_echogram
78
from . import cm
89

910
__all__ = ["create_echogram", "cm"]
11+
12+
warnings.warn(
13+
(
14+
"`echopype.visualization` is deprecated and will be removed in an upcoming release. \n"
15+
"Use Echoshader for visualization functions instead. \n"
16+
"Repository: https://github.com/OSOceanAcoustics/echoshader \n"
17+
"Echogram plotting: https://echoshader.readthedocs.io/en/latest/version_0.1.0/echogram_examples.html" # noqa
18+
),
19+
DeprecationWarning,
20+
2,
21+
)

0 commit comments

Comments
 (0)