Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the invalid comment 'Choose how data will be passed ...' #2721

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pygmt/src/blockm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
1 change: 0 additions & 1 deletion pygmt/src/nearneighbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/plot3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/rose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/triangulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/velo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion pygmt/src/wiggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
Loading