Skip to content

Commit d76aa2b

Browse files
Update fixture import and docstring in test_filter1d.py (#1962)
1 parent f4b20a8 commit d76aa2b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pygmt/tests/test_filter1d.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,17 @@
88
import pandas as pd
99
import pytest
1010
from pygmt import filter1d
11+
from pygmt.datasets import load_sample_data
1112
from pygmt.exceptions import GMTInvalidInput
1213
from pygmt.helpers import GMTTempFile
13-
from pygmt.src import which
1414

1515

1616
@pytest.fixture(scope="module", name="data")
1717
def fixture_table():
1818
"""
19-
Load the grid data from the sample earth_relief file.
19+
Load the @MaunaLoa_CO2.txt dataset as a pandas dataframe.
2020
"""
21-
fname = which("@MaunaLoa_CO2.txt", download="c")
22-
data = pd.read_csv(
23-
fname, header=None, skiprows=1, sep=r"\s+", names=["date", "co2_ppm"]
24-
)
25-
return data
21+
return load_sample_data(name="maunaloa_co2")
2622

2723

2824
def test_filter1d_no_outfile(data):

0 commit comments

Comments
 (0)