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
bbc6bfc8
Commit
bbc6bfc8
authored
Mar 05, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the skillDict has a different form; keeps also info on the technoloty that can be performed
parent
e6e374ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
dream/plugins/ReadJSSkillsToStations.py
dream/plugins/ReadJSSkillsToStations.py
+10
-1
No files found.
dream/plugins/ReadJSSkillsToStations.py
View file @
bbc6bfc8
...
@@ -35,7 +35,16 @@ class ReadJSSkillsToStations(UpdateStationList.UpdateStationList):
...
@@ -35,7 +35,16 @@ class ReadJSSkillsToStations(UpdateStationList.UpdateStationList):
if
station
.
startswith
(
self
.
getStationInitials
(
tech
))
\
if
station
.
startswith
(
self
.
getStationInitials
(
tech
))
\
and
data
[
"graph"
][
"node"
][
station
][
"_class"
]
in
self
.
STATION_CLASS_SET
:
and
data
[
"graph"
][
"node"
][
station
][
"_class"
]
in
self
.
STATION_CLASS_SET
:
stationList
.
append
(
station
)
stationList
.
append
(
station
)
skillDict
[
operation
]
=
stationList
'''
the skillDict has the form of
{"load": {"stationIdList": []
"technologyList": []},
"process": {"stationIdList": ["WORK1, "WORK2"]
"technologyList": ["MAN"]}} # He cannot perform though QUAL quality control on the same station
'''
skillDict
[
operation
]
=
{}
skillDict
[
operation
][
"stationIdList"
]
=
stationList
skillDict
[
operation
][
"technologyList"
]
=
[
technology
.
split
(
"-"
)[
0
]
for
technology
in
technologyList
]
nodes
[
ID
][
"skillDict"
]
=
skillDict
nodes
[
ID
][
"skillDict"
]
=
skillDict
return
data
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