Skip to content

Fix panic when calling to_owned_array on PyArrayDyn #89

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

Merged
merged 2 commits into from
Dec 5, 2018

Conversation

potocpav
Copy link
Contributor

@potocpav potocpav commented Dec 5, 2018

I also added a test.

I'm not sure exactly how the fix works unfortunately. It seems to me that the before and after should be functionally equivalent (apart from the allocation I introduced).

@kngwyu
Copy link
Member

kngwyu commented Dec 5, 2018

Thanks but I want to check what the cause of panic is!
Please wait for a while..

@kngwyu
Copy link
Member

kngwyu commented Dec 5, 2018

Ah I understand.
Looks D::default returns a smaller dimension.

@kngwyu kngwyu merged commit 4ad2b21 into PyO3:master Dec 5, 2018
@kngwyu
Copy link
Member

kngwyu commented Dec 5, 2018

Thanks, again!

@potocpav
Copy link
Contributor Author

potocpav commented Dec 5, 2018

No problem. Thanks for investigating & merging it extra fast :)

@potocpav potocpav deleted the fix-panic branch December 5, 2018 17: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.

2 participants