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

Fix parallel.client.View map() on numpy arrays #4021

Merged
merged 3 commits into from Aug 15, 2013
Merged

Conversation

samuela
Copy link
Contributor

@samuela samuela commented Aug 14, 2013

Resolves #4020.

@minrk
Copy link
Member

minrk commented Aug 14, 2013

test_map_iterable fails.

r = view.map_sync(lambda x:x, arr)
self.assertEqual(r, list(arr))
r = view.map_sync(lambda x: x, it)
self.assertEqual(r, list(it))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave this second one as list(arr). map_sync is walking the iterator already, so list(it) just gives an empty list.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I think I fixed I typo with a typo. Fix coming soon.

@minrk
Copy link
Member

minrk commented Aug 15, 2013

thanks, fix confirmed. Merging.

minrk added a commit that referenced this pull request Aug 15, 2013
Fix parallel.client.View map() on numpy arrays

closes #4020
@minrk minrk merged commit 04aa452 into ipython:master Aug 15, 2013
minrk added a commit that referenced this pull request Aug 16, 2013
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Fix parallel.client.View map() on numpy arrays

closes ipython#4020
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.

IPython parallel map fails on numpy arrays
2 participants