vprusso/toqito

Failure on macOS

Closed this issue · 2 comments

As noted in #374, toqito.perms module might not work as intended on macOS. The following test fails on macOS which is why it is skipped in a Github workflow for macOS.

# https://docs.python.org/3/library/platform.html
# Darwin is the system name for macOS
@pytest.mark.skipif(platform.system() == "Darwin", reason="3-3-True-expected_result3 fails for macOS")
@pytest.mark.parametrize("dim, p_param, partial, expected_result", [

To fix this issue: Check functions from toqito.perms in a macOS virtual machine or an actual macOS device.

This could possibly be an issue in scipy and/or numpy. If this is the case, recreate the issue with a simple reproducible example without using functions in toqito. For more info, see numpy/numpy#25395 (comment))

Failure Message

FAILED toqito/perms/tests/test_antisymmetric_projection.py::test_antisymmetric_projection[3-3-True-expected_result3] - IndexError: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 27

If no one has taken interest in this issue and is not part of a project, I'd like to take this one on.

I use a Mac on a daily basis.

Another pair of eyes would be great if you're willing to spare them on this, @Bchass !

Thank you, as always, for your interest and support!