Skip to content

Commit

Permalink
Fix GMT_OUT
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jun 21, 2024
1 parent 5e390d4 commit 003383d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pygmt/clib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -1759,9 +1759,8 @@ def virtualfile_out(
"grid": ("GMT_IS_GRID", "GMT_IS_SURFACE"),
"image": ("GMT_IS_IMAGE", "GMT_IS_SURFACE"),
}[kind]
with self.open_virtualfile(
family, geometry, "GMT_OUT|GMT_IS_REFERENCE", None
) as vfile:
direction = "GMT_OUT|GMT_IS_REFERENCE" if kind == "image" else "GMT_OUT"
with self.open_virtualfile(family, geometry, direction, None) as vfile:
yield vfile

def inquire_virtualfile(self, vfname: str) -> int:
Expand Down

0 comments on commit 003383d

Please sign in to comment.