Skip to content

TypeError: unsupported operand type(s) for -: 'float' and 'NoneType' #7793

@KumoLiu

Description

@KumoLiu
[2024-05-23T00:46:31.067Z] ======================================================================
[2024-05-23T00:46:31.067Z] ERROR: test_itk_benchmark (tests.test_warp.TestWarp)
[2024-05-23T00:46:31.067Z] ----------------------------------------------------------------------
[2024-05-23T00:46:31.067Z] Traceback (most recent call last):
[2024-05-23T00:46:31.067Z]   File "/opt/monai/tests/test_warp.py", line 125, in test_itk_benchmark
[2024-05-23T00:46:31.067Z]     np.divide(monai_result - itk_result, itk_result, out=np.zeros_like(itk_result), where=(itk_result != 0))
[2024-05-23T00:46:31.067Z] TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'
[2024-05-23T00:46:31.068Z] 
[2024-05-23T00:46:31.068Z] ----------------------------------------------------------------------
[2024-05-23T00:46:31.068Z] Ran 13634 tests in 3453.093s
[2024-05-23T00:46:31.068Z] 
[2024-05-23T00:46:31.068Z] FAILED (errors=1, skipped=385)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions