Skip to content

Commit aba264b

Browse files
authored
Add removal note to deprecation warnings (#443)
* Add removal note to deprecation warnings * Say removal will be specifically in next release
1 parent 33c96c3 commit aba264b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

echopype/convert/convert.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# TODO: Used for backwards compatibility. Delete in future versions
2424
def ConvertEK80(_filename=""):
2525
warnings.warn(
26-
"`ConvertEK80` is deprecated, use echopype.open_raw(raw_file, sonar_model='EK80', ...) instead.", # noqa
26+
"`ConvertEK80` is deprecated and will be removed in the next release, use echopype.open_raw(raw_file, sonar_model='EK80', ...) instead.", # noqa
2727
DeprecationWarning,
2828
2,
2929
)
@@ -37,7 +37,7 @@ class Convert:
3737

3838
def __new__(cls, file=None, xml_path=None, model=None, storage_options=None):
3939
warnings.warn(
40-
"Calling `echopype.Convert` is deprecated, "
40+
"Calling `echopype.Convert` is deprecated and will be removed in the next release, "
4141
"use `echopype.open_raw(raw_file, sonar_model, ...)` instead.",
4242
DeprecationWarning,
4343
2,

echopype/process/process_deprecated.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ class Process():
1919
the new Calibrate and Preprocess functions under the hood.
2020
"""
2121
def __init__(self, file_path="", salinity=27.9, pressure=59, temperature=None):
22-
warnings.warn("Initializing a Process object is deprecated. "
22+
warnings.warn("Initializing a Process object is deprecated "
23+
"and it will be removed in the next release. "
2324
"More information on how to use the new processing "
2425
"functions can be found in the echopype documentation.",
2526
DeprecationWarning, 3)

0 commit comments

Comments
 (0)