diff --git a/core/utils.jl b/core/utils.jl index 2656503f86b0244c0aa7f3549e697fe5f1fb7db4..c2322e70355bc9274a1bd05f50be86c4615a50fa 100644 --- a/core/utils.jl +++ b/core/utils.jl @@ -11,11 +11,12 @@ function cosmos_get_values(name_file::String) while !eof(output_file) line = readline(output_file) splitted_line = split(line, ':') - if (length(splitted_line) > 1) && tryparse(Float64, splitted_line[2]) !== nothing + str_val = split(splitted_line[2], ' ')[1] + if (length(splitted_line) > 1) && tryparse(Float64, str_val) !== nothing if !haskey(dict_values, splitted_line[1]) dict_values[splitted_line[1]] = zeros(0) end - push!(dict_values[splitted_line[1]], parse(Float64, splitted_line[2])) + push!(dict_values[splitted_line[1]], parse(Float64, str_val)) end end close(output_file)