-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Affects: PythonCall
Describe the bug
ArrayValue.__array__() now supports the copy argument and defaults to copy=None, but this is not supported on numpy v1 and breaks when using a DimArray from DimensionalData.jl:
# Works
@pyeval (x=rand(10), np) => "np.asarray(x)"
# Fails
@pyeval (x=rand(X(10)), np) => "np.asarray(x)"
Python: ValueError: NoneType copy mode not allowed.
Python stacktrace:
[1] __array__
@ /path/to/julia-depot/packages/PythonCall/syXxf/src/JlWrap/array.jl:371
[2] <module>
@ In[44]:1:1Not sure why it only breaks with DimArray but works with Array.
Your system
Please provide detailed information about your system:
- Linux
- Julia 1.12.2, PythonCall
main, Python 3.11.13, Numpy 1.26.4.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working