Skip to content

Commit ae2bfd9

Browse files
committed
fix imports
1 parent 744e1f1 commit ae2bfd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/tests/test_grdgradient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
"""
44
import os
55

6-
import numpy.testing as npt
76
import pytest
8-
from pygmt import grdgradient, grdinfo, load_dataarray
7+
import xarray as xr
8+
from pygmt import grdgradient, load_dataarray
99
from pygmt.datasets import load_earth_relief
1010
from pygmt.exceptions import GMTInvalidInput
1111
from pygmt.helpers import GMTTempFile
12-
import xarray as xr
1312

1413

1514
@pytest.fixture(scope="module", name="grid")
@@ -99,6 +98,7 @@ def test_grdgradient_no_outgrid(grid, expected_grid):
9998
# check information of the output grid
10099
xr.testing.assert_allclose(a=result, b=expected_grid)
101100

101+
102102
def test_grdgradient_fails(grid):
103103
"""
104104
Check that grdgradient fails correctly.

0 commit comments

Comments
 (0)