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

ENH: add concat #20

Merged
merged 6 commits into from
Oct 12, 2015
Merged

ENH: add concat #20

merged 6 commits into from
Oct 12, 2015

Conversation

tacaswell
Copy link
Member

Adds a top level function concat and a Cycler method concat which
will 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

Adds a top level function `concat` and a `Cycler` method `concat` which
will concatenate two cyclers.  The method can be chained.

closes matplotlib#1
@tacaswell
Copy link
Member Author

Bump on this so we can do a 1.0 release with mpl 1.5.0 final.

@WeatherGod
Copy link
Member

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
wrote:

Bump on this so we can do a 1.0 release with mpl 1.5.0 final.


Reply to this email directly or view it on GitHub
#20 (comment).


def test_concat():
a = cycler('a', range(3))
for con, chn in zip(a.concat(a), chain(a, a)):
Copy link
Member

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).

@pelson
Copy link
Member

pelson commented Oct 10, 2015

👍 from me once the two comments are addressed.

@tacaswell
Copy link
Member Author

I think I have addressed both of @pelson comments.

efiring added a commit that referenced this pull request Oct 12, 2015
@efiring efiring merged commit a1d60c7 into matplotlib:master Oct 12, 2015
@pelson
Copy link
Member

pelson commented Oct 12, 2015

Thanks @tacaswell.

@tacaswell tacaswell deleted the enh_concat branch October 12, 2015 14:06
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

Successfully merging this pull request may close these issues.

Add concatenation operator
4 participants