Skip to content

Commit

Permalink
load_dataset is not removed yet
Browse files Browse the repository at this point in the history
it's still deprecated, but we'll leave it for a bit longer before removal.
  • Loading branch information
Zac-HD committed Feb 22, 2019
1 parent da6da8d commit 97ac4a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xarray/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,17 @@ def open_dataset(name, cache=True, cache_dir=_default_cache_dir,

def load_dataset(*args, **kwargs):
"""
`load_dataset` will be removed in version 0.12. The current behavior of
this function can be achived by using `tutorial.open_dataset(...).load()`.
`load_dataset` is deprecated and will be removed in a future version.
The current behavior of this function can be achived by using
`tutorial.open_dataset(...).load()`.
See Also
--------
open_dataset
"""
warnings.warn(
"load_dataset` will be removed in xarray version 0.12. The current "
"behavior of this function can be achived by using "
"load_dataset` will be removed in a future version of Xarray. "
"The current behavior of this function can be achived by using "
"`tutorial.open_dataset(...).load()`.",
DeprecationWarning, stacklevel=2)
return open_dataset(*args, **kwargs).load()

0 comments on commit 97ac4a6

Please sign in to comment.