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
!150
Load schedule without asking if there is a single schedule in the file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Load schedule without asking if there is a single schedule in the file
singleloadschedulergui
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Oscar Gustafsson
requested to merge
singleloadschedulergui
into
master
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#129 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
624dd963
1 commit,
2 years ago
1 file
+
22
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b_asic/scheduler_gui/main_window.py
+
22
−
18
Options
@@ -255,35 +255,39 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self
,
self
.
tr
(
"
File not found
"
),
self
.
tr
(
"
C
ould
not find any Schedule object in file
'
{}
'
.
"
"
C
an
not find any Schedule object in file
'
{}
'
.
"
).
format
(
os
.
path
.
basename
(
abs_path_filename
)),
)
log
.
info
(
"
C
ould
not find any Schedule object in file
'
{}
'
.
"
.
format
(
"
C
an
not find any Schedule object in file
'
{}
'
.
"
.
format
(
os
.
path
.
basename
(
abs_path_filename
)
)
)
del
module
return
ret_tuple
=
QInputDialog
.
getItem
(
self
,
self
.
tr
(
"
Load object
"
),
self
.
tr
(
"
Found the following Schedule object(s) in file.
\n\n
"
"
Select an object to proceed:
"
),
schedule_obj_list
.
keys
(),
0
,
False
,
)
if
len
(
schedule_obj_list
)
==
1
:
schedule
=
[
val
for
val
in
schedule_obj_list
.
values
()][
0
]
else
:
ret_tuple
=
QInputDialog
.
getItem
(
self
,
self
.
tr
(
"
Load object
"
),
self
.
tr
(
"
Found the following Schedule objects in file.
\n\n
"
"
Select an object to proceed:
"
),
schedule_obj_list
.
keys
(),
0
,
False
,
)
if
not
ret_tuple
[
1
]:
# User canceled the operation
log
.
debug
(
"
Load schedule operation: user canceled
"
)
del
module
return
if
not
ret_tuple
[
1
]:
# User canceled the operation
log
.
debug
(
"
Load schedule operation: user canceled
"
)
del
module
return
schedule
=
schedule_obj_list
[
ret_tuple
[
0
]]
self
.
open
(
schedule
_obj_list
[
ret_tuple
[
0
]]
)
self
.
open
(
schedule
)
del
module
settings
.
setValue
(
"
mainwindow/last_opened_file
"
,
abs_path_filename
)
Loading