Skip to content

Commit

Permalink
Chaneg GMT_IN|GMT_IS_REFERENCE to GMT_IN
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jul 25, 2020
1 parent 32c4d4a commit 6814d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pygmt/clib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ def open_virtual_file(self, family, geometry, direction, data):
... lib.put_vector(dataset, column=0, vector=x)
... lib.put_vector(dataset, column=1, vector=y)
... # Add the dataset to a virtual file
... vfargs = (family, geometry, 'GMT_IN|GMT_IS_REFERENCE', dataset)
... vfargs = (family, geometry, 'GMT_IN', dataset)
... with lib.open_virtual_file(*vfargs) as vfile:
... # Send the output to a temp file so that we can read it
... with GMTTempFile() as ofile:
Expand Down Expand Up @@ -1102,7 +1102,7 @@ def virtualfile_from_vectors(self, *vectors):
self.put_vector(dataset, column=col, vector=array)

with self.open_virtual_file(
family, geometry, "GMT_IN|GMT_IS_REFERENCE", dataset
family, geometry, "GMT_IN", dataset
) as vfile:
yield vfile

Expand Down Expand Up @@ -1185,7 +1185,7 @@ def virtualfile_from_matrix(self, matrix):
self.put_matrix(dataset, matrix)

with self.open_virtual_file(
family, geometry, "GMT_IN|GMT_IS_REFERENCE", dataset
family, geometry, "GMT_IN", dataset
) as vfile:
yield vfile

Expand Down Expand Up @@ -1271,7 +1271,7 @@ def virtualfile_from_grid(self, grid):
registration=_reg,
)
self.put_matrix(gmt_grid, matrix)
args = (family, geometry, "GMT_IN|GMT_IS_REFERENCE", gmt_grid)
args = (family, geometry, "GMT_IN", gmt_grid)
with self.open_virtual_file(*args) as vfile:
yield vfile

Expand Down
4 changes: 2 additions & 2 deletions pygmt/tests/test_clib.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def test_virtual_file():
data = np.arange(shape[0] * shape[1], dtype=dtype).reshape(shape)
lib.put_matrix(dataset, matrix=data)
# Add the dataset to a virtual file and pass it along to gmt info
vfargs = (family, geometry, "GMT_IN|GMT_IS_REFERENCE", dataset)
vfargs = (family, geometry, "GMT_IN", dataset)
with lib.open_virtual_file(*vfargs) as vfile:
with GMTTempFile() as outfile:
lib.call_module("info", "{} ->{}".format(vfile, outfile.name))
Expand All @@ -494,7 +494,7 @@ def test_virtual_file_fails():
vfargs = (
"GMT_IS_DATASET|GMT_VIA_MATRIX",
"GMT_IS_POINT",
"GMT_IN|GMT_IS_REFERENCE",
"GMT_IN",
None,
)

Expand Down

0 comments on commit 6814d18

Please sign in to comment.