Skip to content

How to reinterpret a PyArray without copying data? #429

Closed
@Moelf

Description

@Moelf

it's not specialized right now thus raising error like:

python_array_to_julia tests: Error During Test at /home/akako/Documents/github/dotFiles/homedir/.julia/dev/AwkwardArray/test/runpytests.jl:33
  Test threw exception
  Expression: python_array_to_julia(py_array) isa AwkwardArray.ListOffsetArray{SubArray{Int64, 1, Vector{Int64}, Tuple{UnitRange{Int64}}, true}, AwkwardArray.PrimitiveArray{Float64, SubArray{Float64, 1, Vector{Float64}, Tuple{UnitRange{Int64}}, true}, :default}, :default}
  ArgumentError: Source type for `reinterpret` must be isbits
  Stacktrace:
   [1] _reinterpret

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions