-
Notifications
You must be signed in to change notification settings - Fork 51
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
ENH: add concat #20
ENH: add concat #20
Conversation
Adds a top level function `concat` and a `Cycler` method `concat` which will concatenate two cyclers. The method can be chained. closes matplotlib#1
Bump on this so we can do a 1.0 release with mpl 1.5.0 final. |
I can look at this over the weekend if that works for you? On Fri, Oct 9, 2015 at 4:46 PM, Thomas A Caswell notifications@github.com
|
|
||
def test_concat(): | ||
a = cycler('a', range(3)) | ||
for con, chn in zip(a.concat(a), chain(a, a)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be inclined to test this with two different cyclers, the way this is tested it would be possible to completely ignore the other
input and concatenate self with self (which of course, is not the behaviour we want).
👍 from me once the two comments are addressed. |
I think I have addressed both of @pelson comments. |
Thanks @tacaswell. |
Adds a top level function
concat
and aCycler
methodconcat
whichwill concatenate two cyclers. The method can be chained.
closes #1
I am still partial to using
&
or|
as the concatenation operator, but I don't think there is enough consensus to implement it.@OceanWolf @efiring @WeatherGod @pelson