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
dfd7f72d
Commit
dfd7f72d
authored
Jun 01, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add graph generation for chronological measures
parent
00039840
Pipeline
#9685
failed with stages
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
measure-analysis/measure-analysis.py
measure-analysis/measure-analysis.py
+3
-2
No files found.
measure-analysis/measure-analysis.py
View file @
dfd7f72d
...
@@ -94,7 +94,7 @@ class MeasureSetHandler:
...
@@ -94,7 +94,7 @@ class MeasureSetHandler:
# measures of the same type
# measures of the same type
props_type
=
measures
[
0
].
props_type
props_type
=
measures
[
0
].
props_type
nb_props
=
len
(
measures
[
0
].
props
)
nb_props
=
len
(
measures
[
0
].
props
)
# For each property draw a graph
# For each property draw a graph
for
i
in
range
(
nb_props
):
for
i
in
range
(
nb_props
):
prop_name
=
measures
[
0
].
props_names
[
i
]
prop_name
=
measures
[
0
].
props_names
[
i
]
...
@@ -123,7 +123,8 @@ class MeasureSetHandler:
...
@@ -123,7 +123,8 @@ class MeasureSetHandler:
fig
.
set_size_inches
(
11.0
,
5.5
)
fig
.
set_size_inches
(
11.0
,
5.5
)
# Save the graph
# Save the graph
plt
.
savefig
(
"{}/{}{}.png"
.
format
(
MeasureSetHandler
.
graphs_dir
,
mtype
,
props_name
))
plt
.
savefig
(
"{}/{}{}.png"
.
format
(
MeasureSetHandler
.
graphs_dir
,
mtype
,
prop_name
))
plt
.
clf
()
def
generate_report
(
self
,
include_graphs
=
True
):
def
generate_report
(
self
,
include_graphs
=
True
):
...
...
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