Skip to content

Commit e3166b4

Browse files
committed
autopush
1 parent 311edad commit e3166b4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/plots.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,20 +900,21 @@ function plot_dns_solution(ax, frameskip, infile, savepath)
900900
t = data["t"]
901901
tref = data["tref"]
902902
y = []
903+
tref = tref[:length(tref)-10]
903904

904-
for i in 1:length(t)
905-
@assert t[i] tref[i] "Time values do not match: t[i] = $(t[i]), tref[i] = $(tref[i])"
905+
for i in 1:length(tref)
906+
# @assert t[i] ≈ tref[i] "Time values do not match: t[i] = $(t[i]), tref[i] = $(tref[i])"
906907
err = mean(abs.(ref[:,:,:,i] .- proj[:,:,:,i]) ./ (abs.(ref[:,:,:,i]) .+ 1e-12))
907908
push!(y, sum(abs, err))
908909
end
909910
scatterlines!(
910911
ax,
911-
t,
912+
tref,
912913
vec(y)
913914
)
914915

915916
# Assume we use the first dataset to define dimensions
916-
nframes = length(t)
917+
nframes = length(tref)
917918
# Choose z-slice
918919
zidx = 1
919920

0 commit comments

Comments
 (0)