Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
80772d33
Commit
80772d33
authored
1 year ago
by
Mikael Henriksson
Browse files
Options
Downloads
Patches
Plain Diff
resources.py: adjusted bar heights and exclusion graph drawing settings
parent
26575b3e
Branches
fpl-2023
No related tags found
No related merge requests found
Pipeline
#92558
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
b_asic/resources.py
+8
-4
8 additions, 4 deletions
b_asic/resources.py
with
8 additions
and
4 deletions
b_asic/resources.py
+
8
−
4
View file @
80772d33
...
...
@@ -146,6 +146,10 @@ def draw_exclusion_graph_coloring(
node_color
=
node_color_list
,
ax
=
ax
,
pos
=
nx
.
spring_layout
(
exclusion_graph
,
seed
=
1
),
node_size
=
150
,
font_size
=
4.4
,
width
=
0.4
,
linewidths
=
0.0
,
)
...
...
@@ -489,7 +493,7 @@ class ProcessCollection:
_ax
=
ax
# Lifetime chart left and right padding
PAD_L
,
PAD_R
=
0.0
5
,
0.0
5
PAD_L
,
PAD_R
=
0.0
8
,
0.0
8
max_execution_time
=
max
(
process
.
execution_time
for
process
in
self
.
_collection
)
if
max_execution_time
>
self
.
_schedule_time
:
# Schedule time needs to be greater than or equal to the maximum process
...
...
@@ -527,7 +531,7 @@ class ProcessCollection:
if
bar_end
>=
bar_start
:
_ax
.
broken_barh
(
# type: ignore
[(
PAD_L
+
bar_start
,
bar_end
-
bar_start
-
PAD_L
-
PAD_R
)],
(
bar_row
+
0.5
5
,
0.
9
),
(
bar_row
+
0.5
8
,
0.
84
),
color
=
bar_color
,
)
else
:
# bar_end < bar_start
...
...
@@ -538,11 +542,11 @@ class ProcessCollection:
self
.
_schedule_time
-
bar_start
-
PAD_L
,
)
],
(
bar_row
+
0.5
5
,
0.
9
),
(
bar_row
+
0.5
8
,
0.
84
),
color
=
bar_color
,
)
_ax
.
broken_barh
(
# type: ignore
[(
0
,
bar_end
-
PAD_R
)],
(
bar_row
+
0.5
5
,
0.
9
),
color
=
bar_color
[(
0
,
bar_end
-
PAD_R
)],
(
bar_row
+
0.5
8
,
0.
84
),
color
=
bar_color
)
if
show_name
:
_ax
.
annotate
(
# type: ignore
...
...
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