Skip to content

Commit

Permalink
Adapt example diamond.jl
Browse files Browse the repository at this point in the history
Still a bug on line 70 of diamond.jl

nested task error: MethodError: no method matching length(::System)
  • Loading branch information
Bachibouzouk committed Jul 22, 2024
1 parent ee08458 commit af8af17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/cohmap_electronic/diamond.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)])

Expand Down

0 comments on commit af8af17

Please sign in to comment.