Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Godoy, William
jexio
Commits
315e2fc2
Commit
315e2fc2
authored
Sep 16, 2020
by
William F Godoy
Browse files
checking for directory
parent
0f610e36
Changes
2
Show whitespace changes
Inline
Side-by-side
src/helper/helperPlot.jl
View file @
315e2fc2
...
...
@@ -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
...
...
src/helper/helperSystem.jl
View file @
315e2fc2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment