Skip to content

Commit ad48c4c

Browse files
committed
Change virtual file name back to fname
1 parent 8f90cc1 commit ad48c4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygmt/src/grdimage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ def grdimage(self, grid, **kwargs):
174174
with Session() as lib:
175175
with lib.virtualfile_from_data(
176176
check_kind="raster", data=grid
177-
) as infile, lib.virtualfile_from_data(
177+
) as fname, lib.virtualfile_from_data(
178178
check_kind="raster", data=kwargs.get("I"), optional_data=True
179-
) as shading:
180-
kwargs["I"] = shading
179+
) as shadegrid:
180+
kwargs["I"] = shadegrid
181181
lib.call_module(
182-
module="grdimage", args=build_arg_string(kwargs, infile=infile)
182+
module="grdimage", args=build_arg_string(kwargs, infile=fname)
183183
)

0 commit comments

Comments
 (0)