Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
937e4442
Commit
937e4442
authored
Jun 09, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless color array
parent
03d17864
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
measure-analysis/measure-analysis.py
measure-analysis/measure-analysis.py
+5
-8
No files found.
measure-analysis/measure-analysis.py
View file @
937e4442
...
@@ -134,9 +134,6 @@ class MeasureSetHandler:
...
@@ -134,9 +134,6 @@ class MeasureSetHandler:
def
generate_graphs
(
self
,
metadata_masks
):
def
generate_graphs
(
self
,
metadata_masks
):
# List of colors to use to superimpose the different plots
colors
=
[
'red'
,
'blue'
,
'green'
,
'purple'
,
'yellow'
]
# For each type of measure set
# For each type of measure set
for
mtype
in
self
.
measure_sets
:
for
mtype
in
self
.
measure_sets
:
...
@@ -169,9 +166,9 @@ class MeasureSetHandler:
...
@@ -169,9 +166,9 @@ class MeasureSetHandler:
metadata_infos
.
append
(
", "
.
join
(
metadata_info
))
metadata_infos
.
append
(
", "
.
join
(
metadata_info
))
if
props_type
==
'histogram'
:
if
props_type
==
'histogram'
:
subplots
.
append
(
measure
.
generate_histogram
(
i
,
colors
[
j
],
metadata_info
))
subplots
.
append
(
measure
.
generate_histogram
(
i
,
metadata_info
))
else
:
else
:
subplots
.
append
(
measure
.
generate_chrono_graph
(
i
,
colors
[
j
],
metadata_info
))
subplots
.
append
(
measure
.
generate_chrono_graph
(
i
,
metadata_info
))
fig
,
ax
=
plt
.
gcf
(),
plt
.
gca
()
fig
,
ax
=
plt
.
gcf
(),
plt
.
gca
()
...
@@ -501,7 +498,7 @@ class MeasureSet:
...
@@ -501,7 +498,7 @@ class MeasureSet:
self
.
add_chronological
(
props_names
,
props
)
self
.
add_chronological
(
props_names
,
props
)
def
generate_histogram
(
self
,
i
,
color
,
name
):
def
generate_histogram
(
self
,
i
,
name
):
bins
=
[
i
for
i
in
range
(
self
.
min
[
i
],
self
.
max
[
i
]
+
1
)]
bins
=
[
i
for
i
in
range
(
self
.
min
[
i
],
self
.
max
[
i
]
+
1
)]
vals
=
self
.
props
[
i
][
self
.
min
[
i
]
+
self
.
middle
:
self
.
max
[
i
]
+
self
.
middle
+
1
]
vals
=
self
.
props
[
i
][
self
.
min
[
i
]
+
self
.
middle
:
self
.
max
[
i
]
+
self
.
middle
+
1
]
...
@@ -513,10 +510,10 @@ class MeasureSet:
...
@@ -513,10 +510,10 @@ class MeasureSet:
return
plt
.
bar
(
bins
,
vals
,
alpha
=
0.4
)
return
plt
.
bar
(
bins
,
vals
,
alpha
=
0.4
)
def
generate_chrono_graph
(
self
,
i
,
color
,
name
):
def
generate_chrono_graph
(
self
,
i
,
name
):
prop
=
self
.
props
[
i
]
prop
=
self
.
props
[
i
]
x
=
[
i
for
i
in
range
(
len
(
prop
))]
x
=
[
i
for
i
in
range
(
len
(
prop
))]
return
plt
.
plot
(
x
,
prop
,
color
=
color
)
return
plt
.
plot
(
x
,
prop
)
def
generate_table
(
self
,
headers
=
True
,
values
=
True
,
metadata_mask
=
[],
props_lens
=
[]):
def
generate_table
(
self
,
headers
=
True
,
values
=
True
,
metadata_mask
=
[],
props_lens
=
[]):
...
...
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