JuliaPy / JuliaPy/PyCall.jl

Numpy arrays of dtype=np.float128 get converted to Array{Nothing}

Open
#743 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Float128 isn't one of the standard numeric types in Julia, but I don't think this behavior is intended.
```Julia
julia> py"np.array([1.,2.,3.,4.,5.], dtype=np.float128)"
5-element Array{Nothing,1}:
nothing
nothing
nothing
nothing
nothing
```
Oversized complex values are handled much more gracefully, by producing a PyObject.
```Julia
julia> py"np.array([1.,2.,3.,4.,5.], dtype=np.complex256)"
PyObject array([1.+0.j, 2.+0.j, 3.+0.j, 4.+0.j, 5.+0.j], dtype=complex256)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.