(feat): seurat v3 with dask #3340
Build #20241113.3 had test failures
Details
- Failed: 16 (0.21%)
- Passed: 6,787 (91.17%)
- Other: 641 (8.61%)
- Total: 7,444
- 9876 of 12921 line covered (76.43%)
Annotations
Check failure on line 1921 in Build log
azure-pipelines / scverse.scanpy
Build log #L1921
Bash exited with code '132'.
Check failure on line 2554 in Build log
azure-pipelines / scverse.scanpy
Build log #L2554
Bash exited with code '1'.
Check failure on line 2573 in Build log
azure-pipelines / scverse.scanpy
Build log #L2573
Bash exited with code '1'.
azure-pipelines / scverse.scanpy
tests/test_utils.py::test_check_nonnegative_integers[poisson-float64-dask_array_dense]
array_type = <function as_dense_dask_array at 0x7fca2bf92b60>
array_value = array([[2., 0., 0., ..., 1., 0., 0.],
[1., 0., 2., ..., 2., 2., 2.],
[0., 0., 0., ..., 1., 1., 0.],
...,
[0., 4., 0., ..., 0., 1., 0.],
[0., 0., 0., ..., 2., 0., 1.],
[2., 1., 2., ..., 3., 2., 1.]])
expected = True
@pytest.mark.parametrize("array_type", ARRAY_TYPES)
@pytest.mark.parametrize(
("array_value", "expected"),
[
pytest.param(
np.random.poisson(size=(100, 100)).astype(np.float64),
True,
id="poisson-float64",
),
pytest.param(
np.random.poisson(size=(100, 100)).astype(np.uint32),
True,
id="poisson-uint32",
),
pytest.param(np.random.normal(size=(100, 100)), False, id="normal"),
pytest.param(np.array([[0, 0, 0], [0, -1, 0], [0, 0, 0]]), False, id="middle"),
],
)
def test_check_nonnegative_integers(array_type, array_value, expected):
X = array_type(array_value)
received = check_nonnegative_integers(X)
if isinstance(X, DaskArray):
> assert isinstance(received, DaskArray)
E assert False
E + where False = isinstance(np.True_, DaskArray)
tests/test_utils.py:186: AssertionError
Raw output
/home/vsts/work/1/s/tests/test_utils.py:186: assert False
azure-pipelines / scverse.scanpy
tests/test_utils.py::test_check_nonnegative_integers[poisson-float64-dask_array_sparse]
array_type = <function as_sparse_dask_array at 0x7fca2bf92c00>
array_value = array([[2., 0., 0., ..., 1., 0., 0.],
[1., 0., 2., ..., 2., 2., 2.],
[0., 0., 0., ..., 1., 1., 0.],
...,
[0., 4., 0., ..., 0., 1., 0.],
[0., 0., 0., ..., 2., 0., 1.],
[2., 1., 2., ..., 3., 2., 1.]])
expected = True
@pytest.mark.parametrize("array_type", ARRAY_TYPES)
@pytest.mark.parametrize(
("array_value", "expected"),
[
pytest.param(
np.random.poisson(size=(100, 100)).astype(np.float64),
True,
id="poisson-float64",
),
pytest.param(
np.random.poisson(size=(100, 100)).astype(np.uint32),
True,
id="poisson-uint32",
),
pytest.param(np.random.normal(size=(100, 100)), False, id="normal"),
pytest.param(np.array([[0, 0, 0], [0, -1, 0], [0, 0, 0]]), False, id="middle"),
],
)
def test_check_nonnegative_integers(array_type, array_value, expected):
X = array_type(array_value)
received = check_nonnegative_integers(X)
if isinstance(X, DaskArray):
> assert isinstance(received, DaskArray)
E assert False
E + where False = isinstance(np.True_, DaskArray)
tests/test_utils.py:186: AssertionError
Raw output
/home/vsts/work/1/s/tests/test_utils.py:186: assert False
azure-pipelines / scverse.scanpy
tests/test_utils.py::test_check_nonnegative_integers[poisson-uint32-dask_array_dense]
array_type = <function as_dense_dask_array at 0x7fca2bf92b60>
array_value = array([[1, 3, 2, ..., 1, 2, 1],
[4, 0, 2, ..., 2, 1, 1],
[1, 0, 1, ..., 0, 2, 1],
...,
[1, 1, 0, ..., 1, 0, 1],
[1, 0, 1, ..., 1, 0, 0],
[1, 1, 1, ..., 0, 0, 0]], dtype=uint32)
expected = True
@pytest.mark.parametrize("array_type", ARRAY_TYPES)
@pytest.mark.parametrize(
("array_value", "expected"),
[
pytest.param(
np.random.poisson(size=(100, 100)).astype(np.float64),
True,
id="poisson-float64",
),
pytest.param(
np.random.poisson(size=(100, 100)).astype(np.uint32),
True,
id="poisson-uint32",
),
pytest.param(np.random.normal(size=(100, 100)), False, id="normal"),
pytest.param(np.array([[0, 0, 0], [0, -1, 0], [0, 0, 0]]), False, id="middle"),
],
)
def test_check_nonnegative_integers(array_type, array_value, expected):
X = array_type(array_value)
received = check_nonnegative_integers(X)
if isinstance(X, DaskArray):
> assert isinstance(received, DaskArray)
E assert False
E + where False = isinstance(np.True_, DaskArray)
tests/test_utils.py:186: AssertionError
Raw output
/home/vsts/work/1/s/tests/test_utils.py:186: assert False
azure-pipelines / scverse.scanpy
tests/test_utils.py::test_check_nonnegative_integers[poisson-uint32-dask_array_sparse]
array_type = <function as_sparse_dask_array at 0x7fca2bf92c00>
array_value = array([[1, 3, 2, ..., 1, 2, 1],
[4, 0, 2, ..., 2, 1, 1],
[1, 0, 1, ..., 0, 2, 1],
...,
[1, 1, 0, ..., 1, 0, 1],
[1, 0, 1, ..., 1, 0, 0],
[1, 1, 1, ..., 0, 0, 0]], dtype=uint32)
expected = True
@pytest.mark.parametrize("array_type", ARRAY_TYPES)
@pytest.mark.parametrize(
("array_value", "expected"),
[
pytest.param(
np.random.poisson(size=(100, 100)).astype(np.float64),
True,
id="poisson-float64",
),
pytest.param(
np.random.poisson(size=(100, 100)).astype(np.uint32),
True,
id="poisson-uint32",
),
pytest.param(np.random.normal(size=(100, 100)), False, id="normal"),
pytest.param(np.array([[0, 0, 0], [0, -1, 0], [0, 0, 0]]), False, id="middle"),
],
)
def test_check_nonnegative_integers(array_type, array_value, expected):
X = array_type(array_value)
received = check_nonnegative_integers(X)
if isinstance(X, DaskArray):
> assert isinstance(received, DaskArray)
E assert False
E + where False = isinstance(np.True_, DaskArray)
tests/test_utils.py:186: AssertionError
Raw output
/home/vsts/work/1/s/tests/test_utils.py:186: assert False