Skip to content

Commit

Permalink
Update fixture import and docstring in test_filter1d.py (GenericMappi…
Browse files Browse the repository at this point in the history
  • Loading branch information
willschlitzer authored and Josh Sixsmith committed Dec 21, 2022
1 parent 5e84684 commit f1396d8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pygmt/tests/test_filter1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f1396d8

Please sign in to comment.