tffm icon indicating copy to clipboard operation
tffm copied to clipboard

get_shorter_decompositions in util.py

Open yvesx opened this issue 6 years ago • 0 comments

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.

yvesx avatar Aug 10 '17 22:08 yvesx