Skip to content

Feature inversion task (#81) に関わるPR内のテストコードの作成 #105

Feature inversion task (#81) に関わるPR内のテストコードの作成

Feature inversion task (#81) に関わるPR内のテストコードの作成 #105

Triggered via pull request January 23, 2024 07:39
Status Failure
Total duration 2m 25s
Artifacts

ci.yml

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

Annotations

51 errors and 6 warnings
lint
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#L31
TestBdata.test_add_get AssertionError: Arrays are not equal (shapes (5, 0, 38), (5, 10) mismatch) x: array([], shape=(5, 0, 38), dtype=float64) y: array([[0.203189, 0.012859, 0.566231, 0.632834, 0.550022, 0.176496, 0.85292 , 0.431006, 0.363178, 0.757615], [0.598031, 0.167152, 0.042775, 0.206223, 0.007393, 0.5105 ,...
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.583802, 0.030891, 0.71187 , 0.376186, 0.062914, 0.101621, 0.796077, 0.451091, 0.649915, 0.663903])
test (3.11): tests/bdata/test_bdata.py#L126
TestBdata.test_select AssertionError: Arrays are not equal (shapes (5, 0, 15), (5, 10) mismatch) x: array([], shape=(5, 0, 15), dtype=float64) y: array([[0.79015 , 0.977623, 0.011668, 0.351194, 0.602237, 0.009588, 0.770213, 0.089388, 0.06933 , 0.302453], [0.761835, 0.878621, 0.821822, 0.839598, 0.45957 , 0.210285,...
test (3.11): tests/bdata/test_bdata.py#L154
TestBdata.test_vmap_add_get AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.11): tests/bdata/test_bdata.py#L199
TestBdata.test_vmap_add_insufficient_vmap AssertionError: ValueError not raised
test (3.11): tests/bdata/test_bdata.py#L172
TestBdata.test_vmap_add_same_map AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.11): tests/bdata/test_bdata.py#L224
TestBdata.test_vmap_add_unnecessary_vmap AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
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: `list-item`: tests/task/test_callback.py#L29
List item 2 has incompatible type "Tuple[Callable[[int, int], int], Tuple[int, int], int]"; expected "Tuple[Callable[..., Any], Tuple[Any], Any]"
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"
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#L31
TestBdata.test_add_get AssertionError: Arrays are not equal (shapes (5, 0, 38), (5, 10) mismatch) x: array([], shape=(5, 0, 38), dtype=float64) y: array([[7.185068e-01, 8.743038e-01, 7.447632e-01, 5.766322e-01, 8.928614e-01, 9.962334e-01, 7.170211e-01, 8.918363e-01, 9.602900e-01, 1.740874e-01],...
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.910656, 0.674049, 0.645713, 0.529527, 0.691195, 0.561263, 0.235041, 0.365774, 0.228666, 0.375395])
test (3.10): tests/bdata/test_bdata.py#L126
TestBdata.test_select AssertionError: Arrays are not equal (shapes (5, 0, 15), (5, 10) mismatch) x: array([], shape=(5, 0, 15), dtype=float64) y: array([[0.371996, 0.065564, 0.291944, 0.846559, 0.709859, 0.812979, 0.99713 , 0.295594, 0.292099, 0.366524], [0.907245, 0.461261, 0.248062, 0.10392 , 0.308457, 0.411307,...
test (3.10): tests/bdata/test_bdata.py#L154
TestBdata.test_vmap_add_get AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.10): tests/bdata/test_bdata.py#L163
TestBdata.test_vmap_add_insufficient_vmap AssertionError: ValueError not raised
test (3.10): tests/bdata/test_bdata.py#L172
TestBdata.test_vmap_add_same_map AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.10): tests/bdata/test_bdata.py#L224
TestBdata.test_vmap_add_unnecessary_vmap AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
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#L31
TestBdata.test_add_get AssertionError: Arrays are not equal (shapes (5, 0, 38), (5, 10) mismatch) x: array([], shape=(5, 0, 38), dtype=float64) y: array([[0.338017, 0.960181, 0.574729, 0.060767, 0.324409, 0.876668, 0.144086, 0.673224, 0.33366 , 0.791013], [0.314747, 0.671849, 0.180564, 0.675285, 0.370697, 0.916756,...
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.658977, 0.034567, 0.368322, 0.27131 , 0.26379 , 0.500447, 0.576409, 0.18768 , 0.438326, 0.585281])
test (3.9): tests/bdata/test_bdata.py#L126
TestBdata.test_select AssertionError: Arrays are not equal (shapes (5, 0, 15), (5, 10) mismatch) x: array([], shape=(5, 0, 15), dtype=float64) y: array([[0.045199, 0.167937, 0.764991, 0.638668, 0.40276 , 0.3072 , 0.589764, 0.515234, 0.441105, 0.392957], [0.19749 , 0.05831 , 0.758049, 0.884238, 0.032598, 0.848164,...
test (3.9): tests/bdata/test_bdata.py#L154
TestBdata.test_vmap_add_get AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.9): tests/bdata/test_bdata.py#L163
TestBdata.test_vmap_add_insufficient_vmap AssertionError: ValueError not raised
test (3.9): tests/bdata/test_bdata.py#L172
TestBdata.test_vmap_add_same_map AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.9): tests/bdata/test_bdata.py#L224
TestBdata.test_vmap_add_unnecessary_vmap AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
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#L31
TestBdata.test_add_get AssertionError: Arrays are not equal (shapes (5, 0, 38), (5, 10) mismatch) x: array([], shape=(5, 0, 38), dtype=float64) y: array([[0.728309, 0.152326, 0.328728, 0.478108, 0.401187, 0.376203, 0.196934, 0.557843, 0.75208 , 0.87087 ], [0.311451, 0.272476, 0.595101, 0.913522, 0.036871, 0.711106,...
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.718514, 0.542124, 0.689615, 0.233917, 0.08685 , 0.854429, 0.281927, 0.83583 , 0.315224, 0.43458 ])
test (3.8): tests/bdata/test_bdata.py#L126
TestBdata.test_select AssertionError: Arrays are not equal (shapes (5, 0, 15), (5, 10) mismatch) x: array([], shape=(5, 0, 15), dtype=float64) y: array([[0.665751, 0.166674, 0.310036, 0.644029, 0.244238, 0.375221, 0.364857, 0.109791, 0.659718, 0.341357], [0.279155, 0.39363 , 0.935668, 0.574853, 0.880701, 0.165918,...
test (3.8): tests/bdata/test_bdata.py#L154
TestBdata.test_vmap_add_get AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.8): tests/bdata/test_bdata.py#L164
TestBdata.test_vmap_add_insufficient_vmap AssertionError: ValueError not raised
test (3.8): tests/bdata/test_bdata.py#L172
TestBdata.test_vmap_add_same_map AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
test (3.8): tests/bdata/test_bdata.py#L224
TestBdata.test_vmap_add_unnecessary_vmap AssertionError: assert {} == {1: 'label-1'... 4: 'label-4'} Right contains 4 more items: {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} Full diff: - {1: 'label-1', 2: 'label-2', 3: 'label-3', 4: 'label-4'} + {}
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