Skip to content

Invalid argument error when saving a loaded dataframe #170

@Datseris

Description

@Datseris

(I am sure that this problem comes just because I am a noob but I don't really know what to do with it so please bear with me...)

ws = [10.0, 20.0, 30.0]

pottype = "linear"

simulations = CSV.read("pnjunction_simulations.tsv"; delim='\t') # returns a 54x8 DataFrame

for w in ws

parameters = Dict(
:E=>E,:leng=>leng, :wid=>wid, :w=>w, :B=>B,
:Dk=>Dk, :V0=>V0, :pottype=>pottype)


dataframe = DataFrame(; parameters...)
simulations = vcat(simulations, dataframe)

end


CSV.write("pnjunction_simulations.tsv", simulations; delim='\t')

The last line gives me error:
SystemError: opening file pnjunction_simulations.tsv: Invalid argument

(P.S.: If there is a more "standard" way to add rows to a dataframe, besides this vcat I am doing, you are welcomed to let me know)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions