Skip to content

Commit

Permalink
blockmean & blockmode: Fix the alias of 'd' to 'nodata' (#1563)
Browse files Browse the repository at this point in the history
The alias of d is nodata in other modules, but was incorrectly set to data in blockmean and blockmode. This PR fixes the problem.

blockmode was wrapped in #1456 (after v0.4.1), blockmean was wrapped in #1092 but the wrong alias was added in #1500 (after v0.4.1). Thus, the change won't go into the deprecation cycle.
  • Loading branch information
seisman authored Oct 3, 2021
1 parent b0335cd commit 6aba9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmt/src/blockm.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _blockm(block_method, table, outfile, x, y, z, **kwargs):
V="verbose",
a="aspatial",
b="binary",
d="data",
d="nodata",
e="find",
f="coltypes",
h="header",
Expand Down Expand Up @@ -232,7 +232,7 @@ def blockmedian(table=None, outfile=None, *, x=None, y=None, z=None, **kwargs):
V="verbose",
a="aspatial",
b="binary",
d="data",
d="nodata",
e="find",
f="coltypes",
h="header",
Expand Down

0 comments on commit 6aba9ae

Please sign in to comment.