File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 6
6
import numpy .testing as npt
7
7
import pandas as pd
8
8
import pytest
9
- from packaging .version import Version
10
- from pygmt import clib , grdtrack , which
9
+ from pygmt import grdtrack , which
11
10
from pygmt .datasets import load_earth_relief , load_ocean_ridge_points
12
11
from pygmt .exceptions import GMTInvalidInput
13
12
from pygmt .helpers import data_kind
14
13
15
14
TEST_DATA_DIR = os .path .join (os .path .dirname (__file__ ), "data" )
16
15
TEMP_TRACK = os .path .join (TEST_DATA_DIR , "tmp_track.txt" )
17
16
18
- with clib .Session () as _lib :
19
- gmt_version = Version (_lib .info ["version" ])
20
-
21
17
22
18
@pytest .fixture (scope = "module" , name = "dataarray" )
23
19
def fixture_dataarray ():
Original file line number Diff line number Diff line change 9
9
import pandas as pd
10
10
import pytest
11
11
import xarray as xr
12
- from packaging .version import Version
13
- from pygmt import Figure , clib
12
+ from pygmt import Figure
14
13
from pygmt .exceptions import GMTInvalidInput
15
14
from pygmt .helpers import GMTTempFile
16
15
17
16
TEST_DATA_DIR = os .path .join (os .path .dirname (__file__ ), "data" )
18
17
POINTS_DATA = os .path .join (TEST_DATA_DIR , "points.txt" )
19
18
20
- with clib .Session () as _lib :
21
- gmt_version = Version (_lib .info ["version" ])
22
-
23
19
24
20
@pytest .fixture (scope = "module" )
25
21
def data ():
Original file line number Diff line number Diff line change 3
3
"""
4
4
import pandas as pd
5
5
import pytest
6
- from packaging .version import Version
7
- from pygmt import Figure , clib
6
+ from pygmt import Figure
8
7
from pygmt .exceptions import GMTInvalidInput
9
8
10
- with clib .Session () as _lib :
11
- gmt_version = Version (_lib .info ["version" ])
12
-
13
9
14
10
@pytest .fixture (scope = "module" , name = "dataframe" )
15
11
def fixture_dataframe ():
You can’t perform that action at this time.
0 commit comments