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

Constructing a codebook builder with codebook is not possible #185

Open
schmidmt opened this issue Feb 13, 2024 · 0 comments
Open

Constructing a codebook builder with codebook is not possible #185

schmidmt opened this issue Feb 13, 2024 · 0 comments
Assignees
Labels
bug Something isn't working Python Pertains to the Python API

Comments

@schmidmt
Copy link
Contributor

Describe the bug

When constructing a CodeBookBuilder, the class method .codebook fails when providing a codebook built with lace.Codebook.

Is this a regression?
No.

To Reproduce

import lace

def test_empty_codebook_builder():
    codebook = lace.Codebook("empty")
    _builder = lace.CodebookBuilder.codebook(codebook)


test_empty_codebook_builder()

Fails with

TypeError: argument 'codebook': 'Codebook' object cannot be converted to 'Codebook'.

Expected behavior

A working CodebookBuilder should be created.

@schmidmt schmidmt added bug Something isn't working Python Pertains to the Python API labels Feb 13, 2024
@schmidmt schmidmt self-assigned this Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Python Pertains to the Python API
Projects
None yet
Development

No branches or pull requests

1 participant