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 bug in Table init with multidim input data #3034

Merged
merged 2 commits into from
Oct 21, 2014

Conversation

taldcroft
Copy link
Member

There was a failure when creating a new Table from an ndarray structured array where one of the columns was multidimensional and copy=True. This was due to ignoring the column shape when creating the new _data array.

@taldcroft
Copy link
Member Author

@astrofrog - this is needed to (easily) implement the "table init from ndarray" benchmark using the existing ndarray (which has a multi-dim table). This is how I originally discovered this bug.

Pretty simple and non-controversial patch for review.

@mhvk
Copy link
Contributor

mhvk commented Oct 21, 2014

@taldcroft - I guess this needs rebasing, but looks good. FIne to merge once travis passes (on the rebase).

@taldcroft
Copy link
Member Author

OK rebased (conflict in CHANGES.rst).

@taldcroft
Copy link
Member Author

@mhvk - thanks for your reviews!

taldcroft added a commit that referenced this pull request Oct 21, 2014
Fix bug in Table init with multidim input data
@taldcroft taldcroft merged commit 210d65b into astropy:master Oct 21, 2014
@taldcroft taldcroft deleted the table-init-multidim branch October 21, 2014 15:28
taldcroft added a commit that referenced this pull request Dec 31, 2014
Fix bug in Table init with multidim input data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants