@@ -1390,9 +1390,7 @@ def open_virtualfile(
1390
1390
raise GMTCLibError (msg )
1391
1391
1392
1392
@contextlib .contextmanager
1393
- def virtualfile_from_vectors (
1394
- self , vectors : Sequence , * args
1395
- ) -> Generator [str , None , None ]:
1393
+ def virtualfile_from_vectors (self , vectors : Sequence ) -> Generator [str , None , None ]:
1396
1394
"""
1397
1395
Store a sequence of 1-D vectors as columns of a dataset inside a virtual file.
1398
1396
@@ -1438,21 +1436,6 @@ def virtualfile_from_vectors(
1438
1436
... print(fout.read().strip())
1439
1437
<vector memory>: N = 3 <1/3> <4/6> <7/9>
1440
1438
"""
1441
- # TODO(PyGMT>=0.16.0): Remove the "*args" parameter and related codes.
1442
- # "*args" is added in v0.14.0 for backward-compatibility with the deprecated
1443
- # syntax of passing multiple vectors as positional arguments.
1444
- if len (args ) > 0 :
1445
- msg = (
1446
- "Passing multiple arguments to Session.virtualfile_from_vectors is "
1447
- "deprecated since v0.14.0 and will be unsupported in v0.16.0. "
1448
- "Put all vectors in a sequence (a tuple or a list) instead and pass "
1449
- "the sequence as the single argument to this function. "
1450
- "E.g., use `with lib.virtualfile_from_vectors((x, y, z)) as vfile` "
1451
- "instead of `with lib.virtualfile_from_vectors(x, y, z) as vfile`."
1452
- )
1453
- warnings .warn (message = msg , category = FutureWarning , stacklevel = 3 )
1454
- vectors = (vectors , * args )
1455
-
1456
1439
# Conversion to a C-contiguous array needs to be done here and not in put_vector
1457
1440
# or put_strings because we need to maintain a reference to the copy while it is
1458
1441
# being used by the C API. Otherwise, the array would be garbage collected and
0 commit comments