Skip to content

Commit 8e72f1d

Browse files
committed
Fix xyz2grd
1 parent bb1b137 commit 8e72f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/src/xyz2grd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def xyz2grd(
155155
... x=xx, y=yy, z=zz, spacing=(1.0, 0.5), region=[0, 3, 10, 13]
156156
... )
157157
"""
158-
if kwargs.get("I") is None or kwargs.get("R") is None:
158+
if kwargs.get("I") is None or region is None:
159159
msg = "Both 'region' and 'spacing' must be specified."
160160
raise GMTInvalidInput(msg)
161161

0 commit comments

Comments
 (0)