When using write_solutions and read_solutions to handle data files, the parser works for multiple solutions. However, if the solution array contains only a single vector element, read_solutions fails silently and returns empty vectors.
Minimal Reproducible Example
using HomotopyContinuation
write_solutions("single_sol.txt", [[1, 1]])
read_solutions("single_sol.txt")
Output Behavior
Actual Output
2-element Vector{Vector{Any}}: [] []
Expected Output
1-element Vector{Vector{Complex{Int64}}}: [1 + 0im, 1 + 0im]
My environment
julia: v1.12.6
HomotopyContinuation.jl: v2.20.0
When using
write_solutionsandread_solutionsto handle data files, the parser works for multiple solutions. However, if the solution array contains only a single vector element,read_solutionsfails silently and returns empty vectors.Minimal Reproducible Example
Output Behavior
Actual Output
2-element Vector{Vector{Any}}: [] []Expected Output
1-element Vector{Vector{Complex{Int64}}}: [1 + 0im, 1 + 0im]My environment
julia: v1.12.6HomotopyContinuation.jl: v2.20.0