Skip to content

Commit

Permalink
Fix the dtypes_pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Oct 31, 2024
1 parent 41d8ad5 commit 962e58d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
4 changes: 1 addition & 3 deletions pygmt/tests/test_clib_virtualfile_from_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ def fixture_dtypes_pandas(dtypes):
List of supported pandas dtypes.
"""
dtypes_pandas = dtypes.copy()

if find_spec("pyarrow") is not None:
dtypes_pandas.extend([f"{dtype}[pyarrow]" for dtype in dtypes_pandas])

dtypes_pandas.extend([f"{np.dtype(dtype).name}[pyarrow]" for dtype in dtypes])
return tuple(dtypes_pandas)


Expand Down
14 changes: 0 additions & 14 deletions pygmt/tests/test_clib_virtualfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Test the Session.open_virtualfile method.
"""

from importlib.util import find_spec
from pathlib import Path

import numpy as np
Expand Down Expand Up @@ -32,19 +31,6 @@ def fixture_dtypes():
return [dtype for dtype in DTYPES_NUMERIC if dtype != np.timedelta64]


@pytest.fixture(scope="module", name="dtypes_pandas")
def fixture_dtypes_pandas(dtypes):
"""
List of supported pandas dtypes.
"""
dtypes_pandas = dtypes.copy()

if find_spec("pyarrow") is not None:
dtypes_pandas.extend([f"{dtype}[pyarrow]" for dtype in dtypes_pandas])

return tuple(dtypes_pandas)


@pytest.mark.benchmark
def test_open_virtualfile(dtypes):
"""
Expand Down

0 comments on commit 962e58d

Please sign in to comment.