You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
bmwiedemann
pushed a commit
to bmwiedemann/openSUSE
that referenced
this issue
Mar 6, 2023
https://build.opensuse.org/request/show/1069587
by user dgarcia + dimstar_suse
- Disable numpy 1.24 broken tests, gh#XanaduAI/blackbird#54
- Remove skip_32bit_divide_scalar_array_test.patch
- Remove fix-aarch64.patch
- Update to 0.5.0
* Rebuilds the grammar using ANTLR v4.9.2 (#51)
* Updates ANTLR v4.9.2 version on the compiling grammar section. (#51)
- 0.4.0
* Remove support for Python 3.5. (#38)
* Add support for Python 3.8 and 3.9. (#40)
* Add public method to retrieve Blackbird program variables via
prog.variables. (#47)
* Improve match_template to automatically return matched parameters
with their array values, rather than their array names (p0, p1,
etc.) (#47)
* Remove p-type parameters from prog.parameters since they're only
needed there internally and are otherwise stored in
prog.variables. This also changes TDM programs to n
With
numpy 1.24
some tests are failing when mixing scalar with arrays:The text was updated successfully, but these errors were encountered: