From ffa1236b8ae364995b82f9af02a6b5fff9da8645 Mon Sep 17 00:00:00 2001 From: Nuwan Yapa Date: Mon, 17 Jun 2024 15:24:12 -0400 Subject: [PATCH] Export data to CSV --- 3body_resonance_EC.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/3body_resonance_EC.jl b/3body_resonance_EC.jl index 426c18e..2c9e9b2 100644 --- a/3body_resonance_EC.jl +++ b/3body_resonance_EC.jl @@ -1,4 +1,4 @@ -using Plots +using DelimitedFiles, Plots include("3body_resonance.jl") current_E = 5.9673 - 0.0006im @@ -47,6 +47,10 @@ for c in extrapolating_c push!(extrapolated, nearest(evals, current_E)) end +open("temp/NCSM.training.csv", "w") do f; writedlm(f, hcat(reim(training)...)); end +open("temp/NCSM.exact.csv", "w") do f; writedlm(f, hcat(reim(exact)...)); end +open("temp/NCSM.extrapolated.csv", "w") do f; writedlm(f, hcat(reim(extrapolated)...)); end + scatter(real.(training),imag.(training), label="training") scatter!(real.(exact),imag.(exact), label="exact") scatter!(real.(extrapolated),imag.(extrapolated), label="extrapolated")