Skip to content

Commit

Permalink
Minor updates to the cache data workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Apr 16, 2024
1 parent ca8973b commit 014561d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cache_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
with:
name: gmt-cache
path: |
~/.gmt/cache
~/.gmt/server
~/.gmt/gmt_data_server.txt
~/.gmt/gmt_hash_server.txt
~/.gmt/cache
~/.gmt/server
~/.gmt/gmt_data_server.txt
~/.gmt/gmt_hash_server.txt
2 changes: 1 addition & 1 deletion pygmt/datatypes/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def to_strings(self) -> np.ndarray[Any, np.dtype[np.str_]]:
"The trailing text column contains `None' values, "
"likely due to upstream GMT API bug. Please consider reporting to us."
)
raise warnings.warn(msg, stacklevel=2)
warnings.warn(msg, stacklevel=2)
textvector = np.where(textvector == None, b"", textvector) # noqa: E711

Check warning on line 165 in pygmt/datatypes/dataset.py

View check run for this annotation

Codecov / codecov/patch

pygmt/datatypes/dataset.py#L164-L165

Added lines #L164 - L165 were not covered by tests
return np.char.decode(textvector) if textvector else np.array([], dtype=str)

Expand Down

0 comments on commit 014561d

Please sign in to comment.