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

Python Array interoperability improvements #26625

Merged
merged 14 commits into from
Feb 3, 2025

Conversation

jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Jan 30, 2025

Improves the support for passing Arrays to Python without copying. The module now supports native python indexing (i.e. using negative numbers) and nested arrays. These nested arrays can be used with numpy.

This PR also exposed a eltType enum and a ndim field.

This PR also reordered some of the tests in the Python test directory

  • start_test test/library/packages/Python
  • start_test test/library/packages/Python with GASNet
  • start_test test/library/packages/Python --memleaks

[Reviewed by @lydia-duncan]

Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
@jabraham17 jabraham17 force-pushed the py-array-improvements branch from dbb45bb to 3c43e83 Compare January 31, 2025 00:42
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
@jabraham17 jabraham17 force-pushed the py-array-improvements branch from 3c43e83 to 7161e77 Compare January 31, 2025 00:43
Signed-off-by: Jade Abraham <[email protected]>
@jabraham17 jabraham17 marked this pull request as ready for review January 31, 2025 01:28
modules/packages/Python.chpl Outdated Show resolved Hide resolved
modules/packages/PythonHelper/ArrayTypes.c Show resolved Hide resolved
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
@jabraham17 jabraham17 merged commit 7998ae0 into chapel-lang:main Feb 3, 2025
8 checks passed
@jabraham17 jabraham17 deleted the py-array-improvements branch February 3, 2025 17:30
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.

2 participants