mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 02:34:28 +00:00
21 lines
520 B
Python
21 lines
520 B
Python
import pytest
|
|
|
|
import numpy as np
|
|
import dask.array as da
|
|
|
|
from numpydantic import interface
|
|
from tests.fixtures import hdf5_array
|
|
|
|
|
|
@pytest.fixture(
|
|
scope="function",
|
|
params=[
|
|
([[1, 2], [3, 4]], interface.NumpyInterface),
|
|
(np.zeros((3, 4)), interface.NumpyInterface),
|
|
(hdf5_array, interface.H5Interface),
|
|
(da.random.random((10, 10)), interface.DaskInterface),
|
|
],
|
|
ids=["numpy_list", "numpy", "H5ArrayPath", "dask"],
|
|
)
|
|
def interface_type(request):
|
|
return request.param
|