Skip to content
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

1 test fails #879

Open
yurivict opened this issue Apr 27, 2024 · 1 comment
Open

1 test fails #879

yurivict opened this issue Apr 27, 2024 · 1 comment
Assignees
Labels

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants