Skip to content

Commit eeeb709

Browse files
committed
Chaneg GMT_IN|GMT_IS_REFERENCE to GMT_IN
1 parent 2a1510a commit eeeb709

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pygmt/clib/session.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ def open_virtual_file(self, family, geometry, direction, data):
953953
... lib.put_vector(dataset, column=0, vector=x)
954954
... lib.put_vector(dataset, column=1, vector=y)
955955
... # Add the dataset to a virtual file
956-
... vfargs = (family, geometry, 'GMT_IN|GMT_IS_REFERENCE', dataset)
956+
... vfargs = (family, geometry, 'GMT_IN', dataset)
957957
... with lib.open_virtual_file(*vfargs) as vfile:
958958
... # Send the output to a temp file so that we can read it
959959
... with GMTTempFile() as ofile:
@@ -1085,7 +1085,7 @@ def virtualfile_from_vectors(self, *vectors):
10851085
self.put_vector(dataset, column=col, vector=array)
10861086

10871087
with self.open_virtual_file(
1088-
family, geometry, "GMT_IN|GMT_IS_REFERENCE", dataset
1088+
family, geometry, "GMT_IN", dataset
10891089
) as vfile:
10901090
yield vfile
10911091

@@ -1168,7 +1168,7 @@ def virtualfile_from_matrix(self, matrix):
11681168
self.put_matrix(dataset, matrix)
11691169

11701170
with self.open_virtual_file(
1171-
family, geometry, "GMT_IN|GMT_IS_REFERENCE", dataset
1171+
family, geometry, "GMT_IN", dataset
11721172
) as vfile:
11731173
yield vfile
11741174

@@ -1245,7 +1245,7 @@ def virtualfile_from_grid(self, grid):
12451245
family, geometry, mode="GMT_CONTAINER_ONLY", ranges=region, inc=inc
12461246
)
12471247
self.put_matrix(gmt_grid, matrix)
1248-
args = (family, geometry, "GMT_IN|GMT_IS_REFERENCE", gmt_grid)
1248+
args = (family, geometry, "GMT_IN", gmt_grid)
12491249
with self.open_virtual_file(*args) as vfile:
12501250
yield vfile
12511251

pygmt/tests/test_clib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def test_virtual_file():
474474
data = np.arange(shape[0] * shape[1], dtype=dtype).reshape(shape)
475475
lib.put_matrix(dataset, matrix=data)
476476
# Add the dataset to a virtual file and pass it along to gmt info
477-
vfargs = (family, geometry, "GMT_IN|GMT_IS_REFERENCE", dataset)
477+
vfargs = (family, geometry, "GMT_IN", dataset)
478478
with lib.open_virtual_file(*vfargs) as vfile:
479479
with GMTTempFile() as outfile:
480480
lib.call_module("info", "{} ->{}".format(vfile, outfile.name))
@@ -494,7 +494,7 @@ def test_virtual_file_fails():
494494
vfargs = (
495495
"GMT_IS_DATASET|GMT_VIA_MATRIX",
496496
"GMT_IS_POINT",
497-
"GMT_IN|GMT_IS_REFERENCE",
497+
"GMT_IN",
498498
None,
499499
)
500500

0 commit comments

Comments
 (0)