Skip to content

Commit 2d55e5a

Browse files
committed
Rename 'required_z' to 'required_ncols' in module wrappers
1 parent af189e6 commit 2d55e5a

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

pygmt/src/blockm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _blockm(
5555
with Session() as lib:
5656
with (
5757
lib.virtualfile_in(
58-
check_kind="vector", data=data, x=x, y=y, z=z, required_z=True
58+
check_kind="vector", data=data, x=x, y=y, z=z, required_ncols=3
5959
) as vintbl,
6060
lib.virtualfile_out(kind="dataset", fname=outfile) as vouttbl,
6161
):

pygmt/src/contour.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def contour(self, data=None, x=None, y=None, z=None, **kwargs):
145145

146146
with Session() as lib:
147147
with lib.virtualfile_in(
148-
check_kind="vector", data=data, x=x, y=y, z=z, required_z=True
148+
check_kind="vector", data=data, x=x, y=y, z=z, required_ncols=3
149149
) as vintbl:
150150
lib.call_module(
151151
module="contour", args=build_arg_list(kwargs, infile=vintbl)

pygmt/src/nearneighbor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def nearneighbor(
141141
with Session() as lib:
142142
with (
143143
lib.virtualfile_in(
144-
check_kind="vector", data=data, x=x, y=y, z=z, required_z=True
144+
check_kind="vector", data=data, x=x, y=y, z=z, required_ncols=3
145145
) as vintbl,
146146
lib.virtualfile_out(kind="grid", fname=outgrid) as voutgrd,
147147
):

pygmt/src/plot3d.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,6 @@ def plot3d(
263263
y=y,
264264
z=z,
265265
extra_arrays=extra_arrays,
266-
required_z=True,
266+
required_ncols=3,
267267
) as vintbl:
268268
lib.call_module(module="plot3d", args=build_arg_list(kwargs, infile=vintbl))

pygmt/src/project.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def project(
245245
x=x,
246246
y=y,
247247
z=z,
248-
required_z=False,
248+
required_ncols=2,
249249
required_data=False,
250250
) as vintbl,
251251
lib.virtualfile_out(kind="dataset", fname=outfile) as vouttbl,

pygmt/src/surface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def surface(
155155
with Session() as lib:
156156
with (
157157
lib.virtualfile_in(
158-
check_kind="vector", data=data, x=x, y=y, z=z, required_z=True
158+
check_kind="vector", data=data, x=x, y=y, z=z, required_ncols=3
159159
) as vintbl,
160160
lib.virtualfile_out(kind="grid", fname=outgrid) as voutgrd,
161161
):

pygmt/src/triangulate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def regular_grid(
138138
with Session() as lib:
139139
with (
140140
lib.virtualfile_in(
141-
check_kind="vector", data=data, x=x, y=y, z=z, required_z=False
141+
check_kind="vector", data=data, x=x, y=y, z=z, required_ncols=2
142142
) as vintbl,
143143
lib.virtualfile_out(kind="grid", fname=outgrid) as voutgrd,
144144
):
@@ -238,7 +238,7 @@ def delaunay_triples(
238238
with Session() as lib:
239239
with (
240240
lib.virtualfile_in(
241-
check_kind="vector", data=data, x=x, y=y, z=z, required_z=False
241+
check_kind="vector", data=data, x=x, y=y, z=z, required_ncols=2
242242
) as vintbl,
243243
lib.virtualfile_out(kind="dataset", fname=outfile) as vouttbl,
244244
):

pygmt/src/wiggle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ def wiggle(
108108

109109
with Session() as lib:
110110
with lib.virtualfile_in(
111-
check_kind="vector", data=data, x=x, y=y, z=z, required_z=True
111+
check_kind="vector", data=data, x=x, y=y, z=z, required_ncols=3
112112
) as vintbl:
113113
lib.call_module(module="wiggle", args=build_arg_list(kwargs, infile=vintbl))

pygmt/src/xyz2grd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def xyz2grd(
149149
with Session() as lib:
150150
with (
151151
lib.virtualfile_in(
152-
check_kind="vector", data=data, x=x, y=y, z=z, required_z=True
152+
check_kind="vector", data=data, x=x, y=y, z=z, required_ncols=3
153153
) as vintbl,
154154
lib.virtualfile_out(kind="grid", fname=outgrid) as voutgrd,
155155
):

0 commit comments

Comments
 (0)