blackbird
blackbird copied to clipboard
Tests fails on numpy >= 1.24
trafficstars
With numpy 1.24 some tests are failing when mixing scalar with arrays:
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_plus_scalar_array[n10] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_plus_scalar_array[n11] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_plus_scalar_array[n12] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_plus_scalar_array[n13] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_plus_scalar_array[n14] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_minus_scalar_array[n10] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_minus_scalar_array[n11] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_minus_scalar_array[n12] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_minus_scalar_array[n13] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_minus_scalar_array[n14] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_multiply_scalar_array[n10] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_multiply_scalar_array[n11] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_multiply_scalar_array[n12] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_multiply_scalar_array[n13] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_multiply_scalar_array[n14] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_divide_scalar_array[n10] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_divide_scalar_array[n11] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_divide_scalar_array[n12] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_divide_scalar_array[n13] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_auxiliary.py::TestExpressionArray::test_divide_scalar_array[n14] - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.
FAILED blackbird_python/blackbird/tests/test_listener.py::TestParsingVariables::test_array_variable_expression - ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.