Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 11 additions & 0 deletions pygmt/helpers/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,17 @@ def new_module(*args, **kwargs):
f"Use long-form parameter '{long_alias}' instead."
)
warnings.warn(msg, category=SyntaxWarning, stacklevel=2)

# timestamp (U) is deprecated since v0.8.0.
Comment thread
seisman marked this conversation as resolved.
Outdated
if "U" in kwargs or "timestamp" in kwargs:
if "timestamp" in kwargs:
kwargs["U"] = kwargs.pop("timestamp")
msg = (
"Parameter 'U' and 'timestamp' is deprecated since v0.8.0. "
"Use Figure.timestamp() instead."
Comment thread
seisman marked this conversation as resolved.
Outdated
)
warnings.warn(msg, category=SyntaxWarning, stacklevel=2)

return module_func(*args, **kwargs)

new_module.aliases = aliases
Expand Down
2 changes: 0 additions & 2 deletions pygmt/src/basemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
F="box",
Td="rose",
Tm="compass",
U="timestamp",
V="verbose",
X="xshift",
Y="yshift",
Expand Down Expand Up @@ -82,7 +81,6 @@ def basemap(self, **kwargs):
compass : str
Draws a map magnetic rose on the map at the location defined by the
reference and anchor points
{timestamp}
{verbose}
{xyshift}
{panel}
Expand Down