You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often need to combine cyclers of unequal length. I had been under the impression that the salient feature distinguishing the '*' and '+' operations was whether or not the cyclers being joined were of equal length, but after submitting matplotlib/cycler #50, it seems that '*' is intended to combine them in a hierarchical fashion, where '+' yields simultaneous cycling.
Currently, '+' does not support unequal-length cyclers, leaving the user to solve the problem of finding the LCM of the two cyclers and extending their length appropriately. Though not insurmountable, it's a significant distraction from other work.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "", line 242, in __add__
"not {0} and {1}".format(len(self), len(other)))
ValueError: Can only add equal length cycles, not 7 and 5
Desired outcome
I would hope for the operation to succeed and for both attributes to be actively cycling, i.e.
I often need to combine cyclers of unequal length. I had been under the impression that the salient feature distinguishing the '*' and '+' operations was whether or not the cyclers being joined were of equal length, but after submitting matplotlib/cycler #50, it seems that '*' is intended to combine them in a hierarchical fashion, where '+' yields simultaneous cycling.
Currently, '+' does not support unequal-length cyclers, leaving the user to solve the problem of finding the LCM of the two cyclers and extending their length appropriately. Though not insurmountable, it's a significant distraction from other work.
Thoughts?
Actual outcome
Desired outcome
I would hope for the operation to succeed and for both attributes to be actively cycling, i.e.
The text was updated successfully, but these errors were encountered: