Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fastNLO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
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
qcd-public
fastNLO
Commits
dd98507e
Commit
dd98507e
authored
4 years ago
by
Klaus Rabbertz
Browse files
Options
Downloads
Patches
Plain Diff
Fix runtime plot for ALL channel
parent
d61efcc9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/plotting/fastnnlo_runtime.py
+7
-13
7 additions, 13 deletions
tools/plotting/fastnnlo_runtime.py
with
7 additions
and
13 deletions
tools/plotting/fastnnlo_runtime.py
+
7
−
13
View file @
dd98507e
...
@@ -260,7 +260,10 @@ def plot_elapsed_time(infodict, out_path, out_name, formats):
...
@@ -260,7 +260,10 @@ def plot_elapsed_time(infodict, out_path, out_name, formats):
# plot histogram
# plot histogram
if
len
(
unique_channels
)
==
1
:
if
len
(
unique_channels
)
>
1
or
unique_channels
[
0
]
==
'
ALL
'
:
n
,
batches
,
_
=
ax
.
hist
(
times
,
bins
=
20
,
color
=
'
deepskyblue
'
,
edgecolor
=
'
black
'
,
label
=
'
Total CPU time: {0:0.0f} hours
'
.
format
(
CPUtime
))
ax
.
legend
(
loc
=
'
best
'
,
fontsize
=
20
)
else
:
plt
.
text
plt
.
text
# plot each unique number in different color
# plot each unique number in different color
for
ev_num
in
set
(
events
):
for
ev_num
in
set
(
events
):
...
@@ -270,12 +273,7 @@ def plot_elapsed_time(infodict, out_path, out_name, formats):
...
@@ -270,12 +273,7 @@ def plot_elapsed_time(infodict, out_path, out_name, formats):
ax
.
vlines
(
mean
,
0
,
max
(
n
),
colors
=
'
red
'
,
linestyles
=
'
dashed
'
,
label
=
r
'
Mean: {0:0.1f}$\pm${1:0.1f}
'
.
format
(
mean
,
std
))
ax
.
vlines
(
mean
,
0
,
max
(
n
),
colors
=
'
red
'
,
linestyles
=
'
dashed
'
,
label
=
r
'
Mean: {0:0.1f}$\pm${1:0.1f}
'
.
format
(
mean
,
std
))
ax
.
vlines
(
median
,
0
,
max
(
n
),
colors
=
'
green
'
,
linestyles
=
'
dashdot
'
,
label
=
r
'
Median: {0:0.2f}$\pm${1:0.2f}
'
.
format
(
median
,
iqd
))
ax
.
vlines
(
median
,
0
,
max
(
n
),
colors
=
'
green
'
,
linestyles
=
'
dashdot
'
,
label
=
r
'
Median: {0:0.2f}$\pm${1:0.2f}
'
.
format
(
median
,
iqd
))
ax
.
ticklabel_format
(
axis
=
'
x
'
,
style
=
'
plain
'
,
useOffset
=
False
)
ax
.
ticklabel_format
(
axis
=
'
x
'
,
style
=
'
plain
'
,
useOffset
=
False
)
else
:
ax
.
legend
(
title
=
'
Total CPU time: {0:0.0f}hours
'
.
format
(
CPUtime
),
loc
=
'
best
'
,
fontsize
=
20
,
title_fontsize
=
20
)
n
,
batches
,
_
=
ax
.
hist
(
times
,
bins
=
20
,
color
=
'
deepskyblue
'
,
edgecolor
=
'
black
'
)
ax
.
set_xscale
(
'
log
'
)
# finish and save figure
# finish and save figure
chnlabel
=
channels
[
0
]
chnlabel
=
channels
[
0
]
...
@@ -286,9 +284,7 @@ def plot_elapsed_time(infodict, out_path, out_name, formats):
...
@@ -286,9 +284,7 @@ def plot_elapsed_time(infodict, out_path, out_name, formats):
ax
.
set_ylabel
(
'
# jobs
'
,
horizontalalignment
=
'
right
'
,
x
=
1.0
,
verticalalignment
=
'
top
'
,
y
=
1.0
,
fontsize
=
20
,
labelpad
=
20
)
ax
.
set_ylabel
(
'
# jobs
'
,
horizontalalignment
=
'
right
'
,
x
=
1.0
,
verticalalignment
=
'
top
'
,
y
=
1.0
,
fontsize
=
20
,
labelpad
=
20
)
ax
.
set_yscale
(
'
log
'
)
ax
.
set_yscale
(
'
log
'
)
ax
.
tick_params
(
axis
=
'
both
'
,
which
=
'
major
'
,
labelsize
=
20
)
ax
.
tick_params
(
axis
=
'
both
'
,
which
=
'
major
'
,
labelsize
=
20
)
ax
.
ticklabel_format
(
axis
=
'
x
'
,
style
=
'
plain
'
,
useOffset
=
False
)
ax
.
legend
(
title
=
'
Total CPU time: {0:0.0f}hours
'
.
format
(
CPUtime
),
loc
=
'
best
'
,
fontsize
=
20
,
title_fontsize
=
20
)
ax
.
grid
()
ax
.
grid
()
ax
.
set_axisbelow
(
True
)
ax
.
set_axisbelow
(
True
)
...
@@ -368,8 +364,6 @@ def plot_events_per_hour(infodict, out_path, out_name, formats):
...
@@ -368,8 +364,6 @@ def plot_events_per_hour(infodict, out_path, out_name, formats):
ax
.
set_xlim
(
0.9
*
ephmin
,
1.1
*
ephmax
)
ax
.
set_xlim
(
0.9
*
ephmin
,
1.1
*
ephmax
)
ax
.
set_xscale
(
'
log
'
)
ax
.
set_xscale
(
'
log
'
)
# finish and save figure
# finish and save figure
chnlabel
=
channels
[
0
]
chnlabel
=
channels
[
0
]
if
out_name
:
if
out_name
:
...
...
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