Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
  • Loading branch information
seisman and weiji14 committed May 16, 2022
1 parent ff47125 commit 5768d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygmt/src/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def text_(
)
if text is None or is_nonstr_iter(text):
raise GMTInvalidInput("Text can't be None or array.")
kind = ""
kind = None
textfiles = ""

# Build the -F option in gmt text.
Expand Down Expand Up @@ -221,7 +221,7 @@ def text_(
extra_arrays.append(kwargs["t"])
kwargs["t"] = ""

# Append text as the last column. Text must be passed in str type.
# Append text at last column. Text must be passed in as str type.
if kind == "vectors":
extra_arrays.append(np.atleast_1d(text).astype(str))

Expand Down

0 comments on commit 5768d50

Please sign in to comment.