Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DetectorWriteSim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EWMSCP
DetectorWriteSim
Commits
0edc1a04
Commit
0edc1a04
authored
1 year ago
by
Michael Reuscher
Browse files
Options
Downloads
Patches
Plain Diff
new plot savepoint
parent
c1b69561
Branches
Branches containing commit
No related tags found
1 merge request
!4
Python driver and data analysis part
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
simrunner/data_config.json
+44
-9
44 additions, 9 deletions
simrunner/data_config.json
visualizer/visualizer/SeabornPlotter.py
+15
-15
15 additions, 15 deletions
visualizer/visualizer/SeabornPlotter.py
visualizer/visualizer/main.py
+7
-4
7 additions, 4 deletions
visualizer/visualizer/main.py
with
66 additions
and
28 deletions
simrunner/data_config.json
+
44
−
9
View file @
0edc1a04
{
"data_set_1"
:{
"--posixDataDir"
:
"
fehler_test
"
,
"-n"
:
"1
5
"
,
"-s"
:
"
2
M"
,
"--posixDataDir"
:
"
protokoll
"
,
"-n"
:
"1
00
"
,
"-s"
:
"
1
M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_2"
:{
"--posixDataDir"
:
"protokoll"
,
"-q"
:
"error test parameter"
,
"-n"
:
"20"
,
"-s"
:
"1M"
,
"-n"
:
"100"
,
"-s"
:
"2M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_3"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"
5
"
,
"-n"
:
"
100
"
,
"-s"
:
"3M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_4"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"10"
,
"-n"
:
"10
0
"
,
"-s"
:
"4M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_5"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"10"
,
"-n"
:
"10
0
"
,
"-s"
:
"5M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_6"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"6M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_7"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"8M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_8"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"16M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_9"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"7M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_10"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"9M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
},
"data_set_11"
:{
"--posixDataDir"
:
"protokoll"
,
"-n"
:
"100"
,
"-s"
:
"12M"
,
"-i"
:
"0.1s"
,
"-N"
:
"4"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
visualizer/visualizer/SeabornPlotter.py
+
15
−
15
View file @
0edc1a04
...
...
@@ -5,29 +5,29 @@ from scipy.stats import iqr
class
SeabornPlotter
:
def
__init__
(
self
,
dataframe
):
def
__init__
(
self
,
dataframe
,
name
):
self
.
dataframe
=
dataframe
self
.
name
=
name
self
.
current_plot
=
None
def
plot
(
self
):
df
=
self
.
dataframe
x
=
df
[
'
size
'
]
y
=
df
[
'
duration
'
]
x_start
=
df
[
'
size
'
].
min
()
/
2
y_start
=
0.001
x_end
=
df
[
'
size
'
].
max
()
*
2
y_end
=
df
[
'
duration
'
].
max
()
x_num_points
=
100
y_step
=
0.001
x_bins
=
np
.
logspace
(
np
.
log10
(
x_start
),
np
.
log10
(
x_end
),
num
=
x_num_points
).
tolist
()
y_bins
=
[
y_start
+
(
y_step
*
i
)
for
i
in
range
(
int
((
y_end
-
y_start
)
/
y_step
)
+
1
)]
title
=
"
Procedure: {}
"
.
format
(
self
.
name
)
f
,
ax
=
plt
.
subplots
(
figsize
=
(
16
,
20
))
sns
.
violinplot
(
x
=
x
,
y
=
y
,
s
=
5
,
color
=
"
.15
"
,
palette
=
"
light:b
"
,
inner
=
"
points
"
,
hue
=
list
(
self
.
dataframe
.
index
.
get_level_values
(
0
)))
#sns.histplot(x=x, y=y, bins=[x_bins, y_bins], pthresh=.1, cmap="coolwarm")
#ax.set_xscale('log')
ax
.
set_yscale
(
'
log
'
)
f
,
ax
=
plt
.
subplots
(
figsize
=
(
16
,
9
))
sns
.
violinplot
(
x
=
x
,
y
=
y
,
s
=
5
,
color
=
"
.15
"
,
palette
=
"
light:b
"
,
inner
=
"
points
"
,
hue
=
list
(
self
.
dataframe
.
index
.
get_level_values
(
0
)))
if
self
.
name
==
"
dump
"
or
self
.
name
==
"
write
"
or
self
.
name
==
"
open
"
or
self
.
name
==
"
wait
"
:
ax
.
set_yscale
(
'
symlog
'
,
linthresh
=
0.1
)
else
:
ax
.
set_yscale
(
'
log
'
)
plt
.
tight_layout
()
plt
.
title
(
title
)
plt
.
xlabel
(
"
Size of written data in ms
"
)
plt
.
ylabel
(
"
Duration
"
)
plt
.
savefig
(
title
)
plt
.
show
()
This diff is collapsed.
Click to expand it.
visualizer/visualizer/main.py
+
7
−
4
View file @
0edc1a04
...
...
@@ -17,12 +17,15 @@ def main():
# Import Data
creator
=
DataFrameCreator
(
data_path
)
dataframes
=
creator
.
create_dataframes
()
for
frame
in
dataframes
.
keys
():
if
not
dataframes
[
frame
].
empty
:
# Setup Plotter
frame_name
=
frame
# Setup Plotter
plotter
=
SeabornPlotter
(
dataframes
[
'
write
'
])
plotter
=
SeabornPlotter
(
dataframes
[
frame
],
frame_name
)
# Plotter run
plotter
.
plot
()
# Plotter run
plotter
.
plot
()
if
__name__
==
"
__main__
"
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment