Skip to content

readdlm does not support Complex #21935

@dlfivefifty

Description

@dlfivefifty

This is in 0.6-rc1 (and earlier):

julia> writecsv("/tmp/comp.csv",[1+im])

julia> readcsv("/tmp/comp.csv")
1×1 Array{Any,2}:
 "1 + 1im"

I would expect it to return an Array{Complex{Int},2}.

PS A quick work around is eval.(parse.(readcsv("/tmp/comp.csv")))

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexComplex numbersioInvolving the I/O subsystem: libuv, read, write, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions