Skip to content

Commit 573909c

Browse files
committed
WIP on gmtbackendentrypoint/region
2 parents 11436ad + 12f9776 commit 573909c

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/check-links.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Link Checker
4242
id: lychee
43-
uses: lycheeverse/[email protected].0
43+
uses: lycheeverse/[email protected].1
4444
with:
4545
fail: false # Don't fail action on broken links
4646
output: /tmp/lychee-out.md
@@ -66,6 +66,7 @@ jobs:
6666
--exclude "^https://www.pygmt.org/%7B%7Bpath%7D%7D"
6767
--exclude "^https://www.researchgate.net/"
6868
--exclude "^https://zenodo.org/badge/DOI/"
69+
--exclude "^https://stackoverflow.com/a/69170441"
6970
--verbose
7071
"repository/*.md"
7172
"repository/**/*.py"

pygmt/helpers/testing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import xarray as xr
1111
from pygmt.exceptions import GMTImageComparisonFailure
12-
from pygmt.src import which
1312

1413

1514
def check_figures_equal(*, extensions=("png",), tol=0.0, result_dir="result_images"):
@@ -144,17 +143,18 @@ def wrapper(*args, ext="png", request=None, **kwargs):
144143
return decorator
145144

146145

147-
def load_static_earth_relief():
146+
def load_static_earth_relief() -> xr.DataArray:
148147
"""
149-
Load the static_earth_relief file for internal testing.
148+
Load the static_earth_relief.nc file for internal testing.
150149
151150
Returns
152151
-------
153-
data : xarray.DataArray
152+
data
154153
A grid of Earth relief for internal tests.
155154
"""
156-
fname = which("@static_earth_relief.nc", download="c")
157-
return xr.load_dataarray(fname, engine="gmt", raster_kind="grid")
155+
return xr.load_dataarray(
156+
"@static_earth_relief.nc", engine="gmt", raster_kind="grid"
157+
)
158158

159159

160160
def skip_if_no(package):

0 commit comments

Comments
 (0)