Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.editor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.editor
Commits
2c8ba0ff
Commit
2c8ba0ff
authored
Nov 26, 2019
by
Flavio TARSETTI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[widgets][toolchaineditor] add schema_version on loop/patch channel_colors
parent
7295763e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
beat/editor/widgets/toolchaineditor.py
beat/editor/widgets/toolchaineditor.py
+8
-3
No files found.
beat/editor/widgets/toolchaineditor.py
View file @
2c8ba0ff
...
...
@@ -1535,8 +1535,6 @@ class Toolchain(QWidget):
new_block_name
=
init_name
+
"_"
+
str
(
init_name_count
)
block_item
[
"name"
]
=
new_block_name
self
.
web_representation
[
"channel_colors"
][
new_block_name
]
=
"#000000"
block
=
Block
(
BlockType
.
LOOPS
.
name
,
self
.
block_config
,
self
.
connection_config
)
...
...
@@ -1626,7 +1624,8 @@ class Toolchain(QWidget):
new_block_name
=
init_name
+
"_"
+
str
(
init_name_count
)
block_item
[
"name"
]
=
new_block_name
self
.
web_representation
[
"channel_colors"
][
new_block_name
]
=
"#000000"
if
block_type
==
BlockType
.
DATASETS
.
name
:
self
.
web_representation
[
"channel_colors"
][
new_block_name
]
=
"#000000"
block
=
Block
(
block_type
,
self
.
block_config
,
self
.
connection_config
)
block
.
load
(
self
,
block_item
)
...
...
@@ -1738,6 +1737,8 @@ class Toolchain(QWidget):
if
self
.
web_representation
is
not
None
:
data
[
"representation"
]
=
self
.
web_representation
has_loops
=
False
for
block_type
in
BlockType
:
block_type_list
=
[]
for
block
in
self
.
blocks
:
...
...
@@ -1751,6 +1752,7 @@ class Toolchain(QWidget):
block_data
[
"evaluator_inputs"
]
=
block
.
evaluator_inputs
block_data
[
"processor_outputs"
]
=
block
.
processor_outputs
block_data
[
"evaluator_outputs"
]
=
block
.
evaluator_outputs
has_loops
=
True
else
:
if
block
.
inputs
is
not
None
:
block_data
[
"inputs"
]
=
block
.
inputs
...
...
@@ -1780,6 +1782,9 @@ class Toolchain(QWidget):
data
[
"connections"
]
=
connection_list
if
has_loops
:
data
[
"schema_version"
]
=
2
return
data
...
...
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