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
Merge requests
!78
Add scheduler GUI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add scheduler GUI
scheduler-gui
into
master
Overview
0
Commits
69
Pipelines
12
Changes
6
Merged
Oscar Gustafsson
requested to merge
scheduler-gui
into
master
2 years ago
Overview
0
Commits
69
Pipelines
12
Changes
6
Expand
0
0
Merge request reports
Viewing commit
33fad4ad
Prev
Next
Show latest version
6 files
+
117
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
33fad4ad
workspace dump
· 33fad4ad
Andreas Bolin
authored
2 years ago
b_asic/scheduler-gui/graphics_axes_item.py
+
3
−
3
Options
@@ -10,7 +10,7 @@ import sys
from
typing
import
Any
,
Optional
from
pprint
import
pprint
from
typing
import
Any
,
Union
,
Optional
,
overload
,
Dict
,
List
,
TypeAlias
from
typing_extensions
import
Self
#
from typing_extensions import Self
import
numpy
as
np
from
copy
import
deepcopy
from
math
import
cos
,
sin
,
pi
@@ -151,12 +151,12 @@ class GraphicsAxesItem(QGraphicsItemGroup):
"""
Register an object that receives events.
"""
self
.
_event_items
.
append
(
item
)
def
set_height
(
self
,
height
:
int
)
->
"
Self
"
:
def
set_height
(
self
,
height
:
int
)
->
"
GraphicsAxesItem
"
:
# TODO: implement, docstring
raise
NotImplemented
return
self
def
set_width
(
self
,
width
:
int
)
->
"
Self
"
:
def
set_width
(
self
,
width
:
int
)
->
"
GraphicsAxesItem
"
:
# TODO: docstring
assert
width
>=
0
,
f
"'
width
'
greater or equal to 0 expected, got:
{
width
}
.
"
delta_width
=
width
-
self
.
_width
Loading