Skip to content

Commit

Permalink
Fix typos in the return value types of grd2xyz and filter1d
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Mar 13, 2024
1 parent bf7b9a1 commit 3a507a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pygmt/src/filter1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from typing import Literal

import numpy as np
import pandas as pd
import xarray as xr
from pygmt.clib import Session
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import (
Expand All @@ -27,7 +27,7 @@ def filter1d(
output_type: Literal["pandas", "numpy", "file"] = "pandas",
outfile: str | None = None,
**kwargs,
) -> pd.DataFrame | xr.DataArray | None:
) -> pd.DataFrame | np.ndarray | None:
r"""
Time domain filtering of 1-D data tables.
Expand Down
3 changes: 2 additions & 1 deletion pygmt/src/grd2xyz.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from typing import TYPE_CHECKING, Literal

import numpy as np
import pandas as pd
import xarray as xr
from pygmt.clib import Session
Expand Down Expand Up @@ -42,7 +43,7 @@ def grd2xyz(
output_type: Literal["pandas", "numpy", "file"] = "pandas",
outfile: str | None = None,
**kwargs,
) -> pd.DataFrame | xr.DataArray | None:
) -> pd.DataFrame | np.ndarray | None:
r"""
Convert grid to data table.
Expand Down

0 comments on commit 3a507a8

Please sign in to comment.