diff --git a/pygmt/src/blockm.py b/pygmt/src/blockm.py index f2fcdecae05..201692333f9 100644 --- a/pygmt/src/blockm.py +++ b/pygmt/src/blockm.py @@ -43,7 +43,6 @@ def _blockm(block_method, data, x, y, z, outfile, **kwargs): """ with GMTTempFile(suffix=".csv") as tmpfile: with Session() as lib: - # Choose how data will be passed into the module table_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=x, y=y, z=z, required_z=True ) diff --git a/pygmt/src/contour.py b/pygmt/src/contour.py index eb5def52940..6aaf22b7cd6 100644 --- a/pygmt/src/contour.py +++ b/pygmt/src/contour.py @@ -115,7 +115,6 @@ def contour(self, data=None, x=None, y=None, z=None, **kwargs): kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access with Session() as lib: - # Choose how data will be passed into the module file_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=x, y=y, z=z, required_z=True ) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index f7c14781eb1..3955e7d9aec 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -493,7 +493,6 @@ def meca( # Assemble -S flag kwargs["S"] = f"{data_format}{scale}" with Session() as lib: - # Choose how data will be passed into the module file_context = lib.virtualfile_from_data(check_kind="vector", data=spec) with file_context as fname: lib.call_module(module="meca", args=build_arg_string(kwargs, infile=fname)) diff --git a/pygmt/src/nearneighbor.py b/pygmt/src/nearneighbor.py index 438f03c6411..53aa9057dde 100644 --- a/pygmt/src/nearneighbor.py +++ b/pygmt/src/nearneighbor.py @@ -149,7 +149,6 @@ def nearneighbor(data=None, x=None, y=None, z=None, **kwargs): """ with GMTTempFile(suffix=".nc") as tmpfile: with Session() as lib: - # Choose how data will be passed into the module table_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=x, y=y, z=z, required_z=True ) diff --git a/pygmt/src/plot.py b/pygmt/src/plot.py index aaf118b6b8a..069ef5c7077 100644 --- a/pygmt/src/plot.py +++ b/pygmt/src/plot.py @@ -258,7 +258,6 @@ def plot(self, data=None, x=None, y=None, size=None, direction=None, **kwargs): kwargs[flag] = "" with Session() as lib: - # Choose how data will be passed in to the module file_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=x, y=y, extra_arrays=extra_arrays ) diff --git a/pygmt/src/plot3d.py b/pygmt/src/plot3d.py index ca937ce2a15..8999933ff6f 100644 --- a/pygmt/src/plot3d.py +++ b/pygmt/src/plot3d.py @@ -228,7 +228,6 @@ def plot3d( kwargs[flag] = "" with Session() as lib: - # Choose how data will be passed in to the module file_context = lib.virtualfile_from_data( check_kind="vector", data=data, diff --git a/pygmt/src/project.py b/pygmt/src/project.py index ff96d0bff75..bdb2490c071 100644 --- a/pygmt/src/project.py +++ b/pygmt/src/project.py @@ -227,7 +227,6 @@ def project(data=None, x=None, y=None, z=None, outfile=None, **kwargs): outfile = tmpfile.name with Session() as lib: if kwargs.get("G") is None: - # Choose how data will be passed into the module table_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=x, y=y, z=z, required_z=False ) diff --git a/pygmt/src/rose.py b/pygmt/src/rose.py index 9864f1b6cfd..c60ede7d61d 100644 --- a/pygmt/src/rose.py +++ b/pygmt/src/rose.py @@ -202,7 +202,6 @@ def rose(self, data=None, length=None, azimuth=None, **kwargs): kwargs = self._preprocess(**kwargs) # pylint: disable=protected-access with Session() as lib: - # Choose how data will be passed into the module file_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=length, y=azimuth ) diff --git a/pygmt/src/select.py b/pygmt/src/select.py index 76edb73c3fc..6374e8b27f7 100644 --- a/pygmt/src/select.py +++ b/pygmt/src/select.py @@ -198,7 +198,6 @@ def select(data=None, outfile=None, **kwargs): with GMTTempFile(suffix=".csv") as tmpfile: with Session() as lib: - # Choose how data will be passed into the module table_context = lib.virtualfile_from_data(check_kind="vector", data=data) with table_context as infile: if outfile is None: diff --git a/pygmt/src/surface.py b/pygmt/src/surface.py index 79eea325618..80987f80de4 100644 --- a/pygmt/src/surface.py +++ b/pygmt/src/surface.py @@ -164,7 +164,6 @@ def surface(data=None, x=None, y=None, z=None, **kwargs): """ with GMTTempFile(suffix=".nc") as tmpfile: with Session() as lib: - # Choose how data will be passed into the module file_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=x, y=y, z=z, required_z=True ) diff --git a/pygmt/src/triangulate.py b/pygmt/src/triangulate.py index 4fb1351e80e..de77394cc9b 100644 --- a/pygmt/src/triangulate.py +++ b/pygmt/src/triangulate.py @@ -126,7 +126,6 @@ def _triangulate( ``outgrid`` or ``outfile``) """ with Session() as lib: - # Choose how data will be passed into the module table_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=x, y=y, z=z, required_z=False ) diff --git a/pygmt/src/velo.py b/pygmt/src/velo.py index e5e6bd681d1..10b3c2b16dc 100644 --- a/pygmt/src/velo.py +++ b/pygmt/src/velo.py @@ -258,7 +258,6 @@ def velo(self, data=None, **kwargs): ) with Session() as lib: - # Choose how data will be passed in to the module file_context = lib.virtualfile_from_data(check_kind="vector", data=data) with file_context as fname: diff --git a/pygmt/src/wiggle.py b/pygmt/src/wiggle.py index e1e72aeafe4..ff5dec107a1 100644 --- a/pygmt/src/wiggle.py +++ b/pygmt/src/wiggle.py @@ -121,7 +121,6 @@ def wiggle( kwargs["G"].append(fillnegative + "+n") with Session() as lib: - # Choose how data will be passed in to the module file_context = lib.virtualfile_from_data( check_kind="vector", data=data, x=x, y=y, z=z, required_z=True )