From f1396d85436f4c71fa96a8652c10bc61b311f291 Mon Sep 17 00:00:00 2001 From: Will Schlitzer Date: Tue, 28 Jun 2022 10:36:45 +0100 Subject: [PATCH] Update fixture import and docstring in test_filter1d.py (#1962) --- pygmt/tests/test_filter1d.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pygmt/tests/test_filter1d.py b/pygmt/tests/test_filter1d.py index 6c86a8f9c56..a0ea89a97cc 100644 --- a/pygmt/tests/test_filter1d.py +++ b/pygmt/tests/test_filter1d.py @@ -8,21 +8,17 @@ import pandas as pd import pytest from pygmt import filter1d +from pygmt.datasets import load_sample_data from pygmt.exceptions import GMTInvalidInput from pygmt.helpers import GMTTempFile -from pygmt.src import which @pytest.fixture(scope="module", name="data") def fixture_table(): """ - Load the grid data from the sample earth_relief file. + Load the @MaunaLoa_CO2.txt dataset as a pandas dataframe. """ - fname = which("@MaunaLoa_CO2.txt", download="c") - data = pd.read_csv( - fname, header=None, skiprows=1, sep=r"\s+", names=["date", "co2_ppm"] - ) - return data + return load_sample_data(name="maunaloa_co2") def test_filter1d_no_outfile(data):