Skip to content

[fix][critical] fix a bug in BData.select() #97

[fix][critical] fix a bug in BData.select()

[fix][critical] fix a bug in BData.select() #97

Triggered via push December 22, 2023 10:00
Status Failure
Total duration 2m 18s
Artifacts

ci.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

39 errors and 6 warnings
lint
Process completed with exit code 1.
test (3.8): tests/test_mri.py#L23
TestMri.test_add_load_epi_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.8): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.8): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0002 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.8): tests/bdata/test_bdata.py#L88
TestBdata.test_metadata_add_get_where AssertionError: Arrays are not equal (shapes (0, 18), (10,) mismatch) x: array([], shape=(0, 18), dtype=float64) y: array([0.901376, 0.404959, 0.880725, 0.209568, 0.349456, 0.602611, 0.435483, 0.343228, 0.00164 , 0.773781])
test (3.8): tests/evals/test_metrics.py#L72
TestMetrics.test_2d FileNotFoundError: [Errno 2] No such file or directory: 'data/testdata-2d.pkl.gz'
test (3.8): tests/evals/test_metrics.py#L88
TestMetrics.test_2d_nan FileNotFoundError: [Errno 2] No such file or directory: 'data/testdata-2d-nan.pkl.gz'
test (3.8)
Process completed with exit code 1.
test (3.11): tests/test_mri.py#L23
TestMri.test_add_load_epi_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.11): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.11): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0002 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.11): tests/bdata/test_bdata.py#L88
TestBdata.test_metadata_add_get_where AssertionError: Arrays are not equal (shapes (0, 18), (10,) mismatch) x: array([], shape=(0, 18), dtype=float64) y: array([0.936225, 0.737208, 0.673648, 0.510833, 0.995927, 0.362007, 0.236 , 0.015652, 0.195893, 0.706622])
test (3.11): tests/evals/test_metrics.py#L72
TestMetrics.test_2d FileNotFoundError: [Errno 2] No such file or directory: 'data/testdata-2d.pkl.gz'
test (3.11): tests/evals/test_metrics.py#L88
TestMetrics.test_2d_nan FileNotFoundError: [Errno 2] No such file or directory: 'data/testdata-2d-nan.pkl.gz'
test (3.11)
Process completed with exit code 1.
test (3.10): tests/test_mri.py#L23
TestMri.test_add_load_epi_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.10): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.10): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0002 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.10): tests/bdata/test_bdata.py#L88
TestBdata.test_metadata_add_get_where AssertionError: Arrays are not equal (shapes (0, 18), (10,) mismatch) x: array([], shape=(0, 18), dtype=float64) y: array([0.827057, 0.276396, 0.534228, 0.931601, 0.920303, 0.4735 , 0.504841, 0.65619 , 0.730746, 0.956493])
test (3.10): tests/evals/test_metrics.py#L72
TestMetrics.test_2d FileNotFoundError: [Errno 2] No such file or directory: 'data/testdata-2d.pkl.gz'
test (3.10): tests/evals/test_metrics.py#L88
TestMetrics.test_2d_nan FileNotFoundError: [Errno 2] No such file or directory: 'data/testdata-2d-nan.pkl.gz'
test (3.10)
Process completed with exit code 1.
test (3.9): tests/test_mri.py#L23
TestMri.test_add_load_epi_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.9): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0001 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.9): tests/test_mri.py#L23
TestMri.test_get_roiflag_pass0002 FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/bdpy/bdpy/tests/data/mri/epi.mat'
test (3.9): tests/bdata/test_bdata.py#L88
TestBdata.test_metadata_add_get_where AssertionError: Arrays are not equal (shapes (0, 18), (10,) mismatch) x: array([], shape=(0, 18), dtype=float64) y: array([0.054183, 0.818145, 0.740522, 0.024861, 0.079828, 0.70713 , 0.812656, 0.964896, 0.521706, 0.975423])
test (3.9): tests/evals/test_metrics.py#L72
TestMetrics.test_2d FileNotFoundError: [Errno 2] No such file or directory: 'data/testdata-2d.pkl.gz'
test (3.9): tests/evals/test_metrics.py#L88
TestMetrics.test_2d_nan FileNotFoundError: [Errno 2] No such file or directory: 'data/testdata-2d-nan.pkl.gz'
test (3.9)
Process completed with exit code 1.
Error code: `import-untyped`: bdpy/fig/tile_images.py#L4
Library stubs not installed for "PIL"
Error code: `import-untyped`: bdpy/fig/tile_images.py#L5
Skipping analyzing "matplotlib.pyplot": module is installed, but missing library stubs or py.typed marker
Error code: `import-untyped`: bdpy/fig/tile_images.py#L5
Skipping analyzing "matplotlib": module is installed, but missing library stubs or py.typed marker
Error code: `import-untyped`: bdpy/fig/tile_images.py#L6
Skipping analyzing "matplotlib.gridspec": module is installed, but missing library stubs or py.typed marker
Error code: `import-untyped`: bdpy/util/info.py#L13
Library stubs not installed for "yaml"
Error code: `arg-type`: bdpy/util/info.py#L24
Argument 1 to "md5" has incompatible type "str"; expected "Buffer"
Error code: `var-annotated`: bdpy/util/utils.py#L48
Need type annotation for "group_vector" (hint: "group_vector: List[<type>] = ...")
Error code: `assignment`: bdpy/util/utils.py#L64
Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "List[Any]")
Error code: `union-attr`: bdpy/util/utils.py#L118
Item "List[Any]" of "Union[List[Any], ndarray[Any, Any]]" has no attribute "ndim"
Error code: `call-overload`: bdpy/util/utils.py#L119
No overload variant of "__getitem__" of "list" matches argument type "List[Any]"
type-check: bdpy/util/utils.py#L119
Possible overload variants:
type-check: bdpy/util/utils.py#L121
Possible overload variants:
type-check: bdpy/dataset/utils.py#L11
Hint: "python3 -m pip install types-tqdm"
type-check: bdpy/dataset/utils.py#L11
(or run "mypy --install-types" to install all missing stub packages)
type-check: bdpy/dataset/utils.py#L11
See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Error code: `annotation-unchecked`: bdpy/dataform/features.py#L382
By default the bodies of untyped functions are not checked, consider using --check-untyped-defs