Commit 315e2fc2 authored by William F Godoy's avatar William F Godoy
Browse files

checking for directory

parent 0f610e36
......@@ -9,19 +9,51 @@ function plot_CSV_3col( filename::String )
x = df[!,1]
y = df[!,2]
z = df[!,3]
display(Plots.scatter( x, y, groups = z, xaxis=:log, yaxis=:log,
yL0 = df[!,3]
yL1 = df[!,4]
yL2 = df[!,5]
z = df[!,6]
fig1 = Plots.scatter( x, y, groups = z, xaxis=:log, yaxis=:log,
legendfontsize=9,
legend = :outertopleft,
# [shapes], size, alpha
marker = ([:x :+ :star4 :vline :square :circle], 7, 1.0),
markercolor = [:blue :green :red :orange :pink],
xlabel = "cumulative output ncells ( output_counter x ncells )",
ylabel = "cumulative output data size (bytes)",
title = "Amrex Castr Sedov hydro test output size",
size=(1200,850)
title = "Amrex Castro hydro_test Sedov 2d.cyl_in_cartcoords output size",
size=(1200,850),
reuse = false
)
Plots.gui(fig1)
#Plots.png(fig1)
readline()
fig2 = Plots.scatter( x, yL0, groups = z, label="case4-L0",
marker = ([:x], 10, 1.0),
markercolor = [:blue :green :red :orange :pink],
legendfontsize=9,
legend = :outertopleft,
xlabel = "cumulative output ncells ( output_counter x ncells )",
ylabel = "cumulative output data size (bytes)",
title = "Amrex Castro hydro_test Sedov 2d.cyl_in_cartcoords output size per Level",
size=(1200,850),
reuse = true
)
Plots.scatter!( x, yL1, groups = z, label= "case4-L1",
marker = ([:+], 10, 1.0),
markercolor = [:blue :green :red :orange :pink],
)
Plots.scatter!( x, yL2, groups = z, label="case4-L2",
marker = ([:star4], 10, 1.0),
markercolor = [:blue :green :red :orange :pink],
)
Plots.gui(fig2)
#Plots.png(fig2)
readline()
end
......
......@@ -57,6 +57,10 @@ end
function helper_get_directory_size(directory::String)::Int64
size::Int64 = 0
if !isdir(directory)
return size
end
for (root, dirs, files) in walkdir(directory)
size += sum(map(filesize, joinpath.(root, files)))
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment