Skip to content

Commit

Permalink
depreciation --> deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaS11 authored Sep 13, 2023
1 parent 3e10d48 commit dd29369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion icepyx/core/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DepreciationError(Exception):
class DeprecationError(Exception):
"""
Class raised for use of functionality that is no longer supported by icepyx.
"""
Expand Down
8 changes: 4 additions & 4 deletions icepyx/core/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
import xarray as xr

from icepyx.core.exceptions import DepreciationError
from icepyx.core.exceptions import DeprecationError
import icepyx.core.is2ref as is2ref
from icepyx.core.variables import Variables as Variables
from icepyx.core.variables import list_of_dict_vals
Expand Down Expand Up @@ -283,7 +283,7 @@ class Read:
catalog : string, default None
Full path to an Intake catalog for reading in data.
If you still need to create a catalog, leave as default.
**Depreciation warning:** This argument has been depreciated. Please use the data_source argument to pass in valid data.
**Deprecation warning:** This argument has been depreciated. Please use the data_source argument to pass in valid data.
out_obj_type : object, default xarray.Dataset
The desired format for the data to be read in.
Expand Down Expand Up @@ -312,8 +312,8 @@ def __init__(
):
# Raise error for depreciated argument
if catalog:
raise DepreciationError(
'The `catalog` argument has been depreciated and intake is no longer supported. '
raise DeprecationError(
'The `catalog` argument has been deprecated and intake is no longer supported. '
'Please use the `data_source` argument to specify your dataset instead.'
)

Expand Down

0 comments on commit dd29369

Please sign in to comment.