Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implements buffer interface for .NET arrays of primitive types#1511

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filmor merged 1 commit intopythonnet:masterfromlosttech:array-buffer-interface
Sep 3, 2021

Conversation

lostmsu
Copy link
Member

What does this implement/fix? Explain your changes.

This allows Python libraries such as NumPy efficiently copy data to/from .NET arrays.

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Updated theCHANGELOG

@lostmsulostmsuforce-pushed thearray-buffer-interface branch fromc2dff5d to00aed52CompareAugust 25, 2021 19:34
try {
np = Py.Import("numpy");
} catch (PythonException) {
Assert.Inconclusive("Numpy or dependency not installed");
Copy link
Member

Choose a reason for hiding this comment

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

We should probably make thatnumpy is installed in our CI then, no?

@lostmsulostmsuforce-pushed thearray-buffer-interface branch from00aed52 to5e5ffffCompareAugust 25, 2021 21:15
@lostmsu
Copy link
MemberAuthor

lostmsu commentedAug 25, 2021
edited
Loading

Addedpip install numpy for testing.

For buffer formats seepybind/pybind11#1908 (comment) (also added code comment)

@lostmsulostmsuforce-pushed thearray-buffer-interface branch 2 times, most recently from6e1f0a8 to91de771CompareAugust 28, 2021 16:35
@lostmsulostmsuforce-pushed thearray-buffer-interface branch from91de771 todc9172aCompareAugust 28, 2021 16:37
@lostmsulostmsu requested a review fromfilmorSeptember 2, 2021 21:42
@filmorfilmor merged commitee0ab7f intopythonnet:masterSep 3, 2021
@lostmsulostmsu deleted the array-buffer-interface branchSeptember 4, 2021 18:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorAwaiting requested review from filmor

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@lostmsu@filmor

[8]ページ先頭

©2009-2025 Movatter.jp