From af8af172e5f23addd1086dc2762adfe388aebcec Mon Sep 17 00:00:00 2001 From: "pierre-francois.duc" Date: Tue, 23 Jul 2024 01:49:31 +0200 Subject: [PATCH] Adapt example diamond.jl Still a bug on line 70 of diamond.jl nested task error: MethodError: no method matching length(::System) --- examples/cohmap_electronic/diamond.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/cohmap_electronic/diamond.jl b/examples/cohmap_electronic/diamond.jl index c9202c4..670beab 100644 --- a/examples/cohmap_electronic/diamond.jl +++ b/examples/cohmap_electronic/diamond.jl @@ -61,13 +61,13 @@ lineshape!(s, "f", "f", g_ff) # Everything is identical to 'basic_ia.jl' from now on. tg = TimeGrid( - linspace(0, t1_max, t1_n), - linspace(0, t2_max, t2_n), - linspace(0, t3_max, t3_n), + range(0, stop=t1_max, step=t1_n), + range(0, stop=t2_max, step=t2_n), + range(0, stop=t3_max, step=t3_n), ) @info("Computing linear response") -r_lin = linear(tg, s) +r_lin = linear(tg, s) # TODO this is where it bugs because System does not have a length ... @info("Saving to $(root)_rlin.txt") writedlm("$(root)_rlin.txt", [tg.times[1] real(r_lin) imag(r_lin)])