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

get_shorter_decompositions in util.py #28

Open
yvesx opened this issue Aug 10, 2017 · 0 comments
Open

get_shorter_decompositions in util.py #28

yvesx opened this issue Aug 10, 2017 · 0 comments

Comments

@yvesx
Copy link

yvesx commented Aug 10, 2017

Hi, thank you for making this great package!
I just noticed this example for get_shorter_decompositions function in util.py:

    Example
    -------
    decompositions, counts = get_shorter_decompositions([1, 2, 3])
        decompositions == [(1, 5), (2, 4), (3, 3), (6,)]
        counts == [ 2.,  1.,  1.,  2.]

I ran this example myself and got the counts as [2, 2, 1, 1] instead of [2, 1, 1, 2].
It seems just a typo in the example in the docstring, nothing wrong with the code itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant