Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: delete deprecated functions #152

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions copernicusmarine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@
from copernicusmarine.python_interface.get import get
from copernicusmarine.python_interface.login import login
from copernicusmarine.python_interface.open_dataset import (
load_xarray_dataset, # depracated
open_dataset,
)
from copernicusmarine.python_interface.read_dataframe import (
load_pandas_dataframe, # depracated
read_dataframe,
)
from copernicusmarine.python_interface.subset import subset
14 changes: 1 addition & 13 deletions copernicusmarine/python_interface/open_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
import xarray

from copernicusmarine.catalogue_parser.request_structure import LoadRequest
from copernicusmarine.core_functions.deprecated import (
deprecated_python_option,
log_deprecated_message,
)
from copernicusmarine.core_functions.deprecated import deprecated_python_option
from copernicusmarine.core_functions.deprecated_options import (
DEPRECATED_OPTIONS,
)
Expand Down Expand Up @@ -37,15 +34,6 @@
from copernicusmarine.python_interface.utils import homogenize_datetime


@log_exception_and_exit
def load_xarray_dataset(*args, **kwargs):
"""
Deprecated function, use 'open_dataset' instead.
"""
log_deprecated_message("load_xarray_dataset", "open_dataset")
return open_dataset(*args, **kwargs)


@deprecated_python_option(**DEPRECATED_OPTIONS.dict_old_names_to_new_names)
@log_exception_and_exit
def open_dataset(
Expand Down
14 changes: 1 addition & 13 deletions copernicusmarine/python_interface/read_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
import pandas

from copernicusmarine.catalogue_parser.request_structure import LoadRequest
from copernicusmarine.core_functions.deprecated import (
deprecated_python_option,
log_deprecated_message,
)
from copernicusmarine.core_functions.deprecated import deprecated_python_option
from copernicusmarine.core_functions.deprecated_options import (
DEPRECATED_OPTIONS,
)
Expand Down Expand Up @@ -37,15 +34,6 @@
from copernicusmarine.python_interface.utils import homogenize_datetime


@log_exception_and_exit
def load_pandas_dataframe(*args, **kwargs):
"""
Deprecated function, use 'read_dataframe' instead.
"""
log_deprecated_message("load_pandas_dataframe", "read_dataframe")
return read_dataframe(*args, **kwargs)


@deprecated_python_option(**DEPRECATED_OPTIONS.dict_old_names_to_new_names)
@log_exception_and_exit
def read_dataframe(
Expand Down