We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ArrayValue.__array__()
1 parent 7f810f8 commit 9ac67bdCopy full SHA for 9ac67bd
src/JlWrap/array.jl
@@ -365,6 +365,10 @@ function init_array()
365
except ImportError:
366
numpy = None
367
if numpy is not None:
368
+ # Numpy <2 does not support `copy=None` argument, so we have to check the version
369
+ major_version = int(numpy.__version__.split(".")[0])
370
+ if major_version < 2 and copy is None:
371
+ copy = False
372
return numpy.array(arr, dtype=dtype, copy=copy)
373
return arr
374
def to_numpy(self, dtype=None, copy=True, order="K"):
0 commit comments