Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
f28d6247
Commit
f28d6247
authored
Feb 04, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[iput][BOM] instead of [BOM]
parent
3fb9039f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
dream/plugins/MergeSteps.py
dream/plugins/MergeSteps.py
+1
-1
dream/plugins/SplitRoute.py
dream/plugins/SplitRoute.py
+2
-4
dream/plugins/UpdateStationList.py
dream/plugins/UpdateStationList.py
+2
-2
No files found.
dream/plugins/MergeSteps.py
View file @
f28d6247
...
@@ -16,7 +16,7 @@ class MergeSteps(plugin.InputPreparationPlugin):
...
@@ -16,7 +16,7 @@ class MergeSteps(plugin.InputPreparationPlugin):
def
preprocess
(
self
,
data
):
def
preprocess
(
self
,
data
):
""" merge the steps that constitute one single technology step
""" merge the steps that constitute one single technology step
"""
"""
orders
=
data
[
"BOM"
][
'orders'
]
orders
=
data
[
"
input"
][
"
BOM"
][
'orders'
]
for
order
in
orders
:
for
order
in
orders
:
orderComponents
=
order
.
get
(
"componentsList"
,
[])
orderComponents
=
order
.
get
(
"componentsList"
,
[])
...
...
dream/plugins/SplitRoute.py
View file @
f28d6247
...
@@ -58,10 +58,8 @@ class SplitRoute(plugin.InputPreparationPlugin):
...
@@ -58,10 +58,8 @@ class SplitRoute(plugin.InputPreparationPlugin):
""" splits the routes of mould parts (design + mould)
""" splits the routes of mould parts (design + mould)
"""
"""
self
.
data
=
copy
(
data
)
self
.
data
=
copy
(
data
)
orders
=
self
.
data
[
"BOM"
][
"orders"
]
orders
=
self
.
data
[
"input"
][
"BOM"
][
"orders"
]
stations
=
self
.
data
[
"BOM"
][
"stations"
]
stations
=
self
.
data
[
"input"
][
"BOM"
][
"stations"
]
graph_data
=
self
.
data
[
"graph"
]
nodes
=
graph_data
[
"node"
]
for
order
in
orders
:
for
order
in
orders
:
...
...
dream/plugins/UpdateStationList.py
View file @
f28d6247
...
@@ -16,8 +16,8 @@ class UpdateStationList(plugin.InputPreparationPlugin):
...
@@ -16,8 +16,8 @@ class UpdateStationList(plugin.InputPreparationPlugin):
def
preprocess
(
self
,
data
):
def
preprocess
(
self
,
data
):
""" substitutes the technology information with stationIDs lists
""" substitutes the technology information with stationIDs lists
"""
"""
orders
=
data
[
"BOM"
][
'orders'
]
orders
=
data
[
"
input"
][
"
BOM"
][
'orders'
]
stations
=
data
[
"BOM"
][
'stations'
]
stations
=
data
[
"
input"
][
"
BOM"
][
'stations'
]
nodes
=
data
[
"graph"
][
"node"
]
nodes
=
data
[
"graph"
][
"node"
]
for
order
in
orders
:
for
order
in
orders
:
...
...
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