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
========================================================================================= short test summary info ==========================================================================================
FAILED science_check.py::test_numpy_array_interface[pint-scalar-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint-scalar-version] - AssertionError: version not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint-d0-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint-d0-version] - AssertionError: version not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint-d1-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint-d1-version] - AssertionError: version not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint-dn-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint-dn-version] - AssertionError: version not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[uncertainties-scalar-shape] - AssertionError: shape not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[uncertainties-scalar-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[uncertainties-scalar-version] - AssertionError: version not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-scalar-shape] - AssertionError: shape not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-scalar-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-scalar-version] - AssertionError: version not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-d0-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-d0-version] - AssertionError: version not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-d1-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-d1-version] - AssertionError: version not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-dn-typestr] - AssertionError: typestr not in attributes nor __array_interface__
FAILED science_check.py::test_numpy_array_interface[pint+uncertainties-dn-version] - AssertionError: version not in attributes nor __array_interface__
I haven't looked at the details yet, but uncertainties doesn't have a dedicated NumPy array type (I wrote it before the array interface existed or was stable, and so NumPy delegates calculations individually to each array value): I'm guessing that the issue lies with Pint. Did you report this in this project?
I'm trying to use numpy + uncertainties + pint library together
To accomplish this I've wrapped test to check bind spots in numpy python array protocol when using pint alone, uncertainties alone and both combined
on the uncertainties side,
shape
attribute seems missing for array scalar typesee:
https://numpy.org/doc/stable/reference/arrays.interface.html#python-side
https://numpy.org/doc/stable/glossary.html#term-array_like
Test summary
run with
pytest thisfile.py
The text was updated successfully, but these errors were encountered: