Skip to content

1 test fails #879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yurivict opened this issue Apr 27, 2024 · 2 comments
Closed

1 test fails #879

yurivict opened this issue Apr 27, 2024 · 2 comments

Comments

@yurivict
Copy link

========================================================================================= FAILURES =========================================================================================
__________________________________________________________________________________ test_multitensor_init ___________________________________________________________________________________

    def test_multitensor_init():
        """
        Testing the generation of a multitensor object with random tensors
        """
        a = np.random.random((5, 5))
        b = np.random.random((4, 4))
        c = np.random.random((3, 3))
        at = Tensor(tensor=a, name='a')
        bt = Tensor(tensor=b, name='b')
        ct = Tensor(tensor=c, name='c')
        mt = MultiTensor([at, bt, ct])
    
        with pytest.raises(TypeError):
            _ = MultiTensor((at, bt))
    
>       assert len(mt.dual_basis) == 0
E       assert 3 == 0
E        +  where 3 = len(<openfermion.contrib.representability._dualbasis.DualBasis object at 0x3b442614f970>)
E        +    where <openfermion.contrib.representability._dualbasis.DualBasis object at 0x3b442614f970> = <openfermion.contrib.representability._multitensor.MultiTensor object at 0x3b44c950a280>.dual_basis

src/openfermion/contrib/representability/_multitensor_test.py:41: AssertionError
===================================================================================== warnings summary =====================================================================================

Version: 1.6.1
Python-3.9
FreeBSD 14.0

@fdmalone fdmalone added the bug label May 11, 2024
@fdmalone
Copy link
Collaborator

This is a recent failure I noticed locally too. Must be an upstream change from some dependency.

@fdmalone fdmalone self-assigned this May 11, 2024
@mhucka mhucka assigned mhucka and unassigned fdmalone Jan 30, 2025
@mhucka
Copy link
Contributor

mhucka commented Feb 6, 2025

Thank you for the report. I haven't been able to reproduce this failure locally. Perhaps this has been resolved in whatever package was responsible. It's also possible that the problem comes from something in the FreeBSD environment. (We only test on Linux [Ubuntu/Debian] and not BSD Unix.)

@yurivict We're about to release OpenFermion version 1.7.0. After it's released, if possible, could you see if this error still occurs for you?

In the meantime, I'm closing this issue, but if it persists for you, please reopen it with a comment.

@mhucka mhucka closed this as completed Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants