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
d6aa9308
Commit
d6aa9308
authored
Sep 27, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Nov 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
componentsReadyForAssembly initiation correction in createWIP
parent
8867334d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+3
-3
No files found.
dream/simulation/LineGenerationJSON.py
View file @
d6aa9308
...
@@ -363,7 +363,7 @@ def createWIP():
...
@@ -363,7 +363,7 @@ def createWIP():
dueDate
=
float
(
prodOrder
.
get
(
'dueDate'
,
'0'
))
dueDate
=
float
(
prodOrder
.
get
(
'dueDate'
,
'0'
))
orderDate
=
float
(
prodOrder
.
get
(
'orderDate'
,
'0'
))
orderDate
=
float
(
prodOrder
.
get
(
'orderDate'
,
'0'
))
isCritical
=
bool
(
int
(
prodOrder
.
get
(
'isCritical'
,
'0'
)))
isCritical
=
bool
(
int
(
prodOrder
.
get
(
'isCritical'
,
'0'
)))
componentsReadyForAssembly
=
bool
((
prodOrder
.
get
(
'componentsReadyForAssembly'
,
'0'
)))
componentsReadyForAssembly
=
bool
((
prodOrder
.
get
(
'componentsReadyForAssembly'
,
False
)))
componentsList
=
prodOrder
.
get
(
'componentsList'
,
{})
componentsList
=
prodOrder
.
get
(
'componentsList'
,
{})
# keep a reference of all extra properties passed to the job
# keep a reference of all extra properties passed to the job
extraPropertyDict
=
{}
extraPropertyDict
=
{}
...
@@ -409,7 +409,7 @@ def createWIP():
...
@@ -409,7 +409,7 @@ def createWIP():
entity
=
entityType
(
**
inputDict
)
entity
=
entityType
(
**
inputDict
)
G
.
EntityList
.
append
(
entity
)
G
.
EntityList
.
append
(
entity
)
object
=
Globals
.
findObjectById
(
element
[
'id'
])
object
=
Globals
.
findObjectById
(
element
[
'id'
])
entity
.
currentStation
=
object
entity
.
currentStation
=
object
# ToDo order is to defined in a new way
# ToDo order is to defined in a new way
if
entityClass
==
'Dream.Order'
:
if
entityClass
==
'Dream.Order'
:
...
@@ -420,7 +420,7 @@ def createWIP():
...
@@ -420,7 +420,7 @@ def createWIP():
orderDate
=
float
(
entity
.
get
(
'orderDate'
,
'0'
))
orderDate
=
float
(
entity
.
get
(
'orderDate'
,
'0'
))
isCritical
=
bool
(
int
(
entity
.
get
(
'isCritical'
,
'0'
)))
isCritical
=
bool
(
int
(
entity
.
get
(
'isCritical'
,
'0'
)))
basicsEnded
=
bool
(
int
(
entity
.
get
(
'basicsEnded'
,
'0'
)))
basicsEnded
=
bool
(
int
(
entity
.
get
(
'basicsEnded'
,
'0'
)))
componentsReadyForAssembly
=
bool
((
entity
.
get
(
'componentsReadyForAssembly'
,
'0'
)))
componentsReadyForAssembly
=
bool
((
entity
.
get
(
'componentsReadyForAssembly'
,
False
)))
# read the manager ID
# read the manager ID
manager
=
entity
.
get
(
'manager'
,
None
)
manager
=
entity
.
get
(
'manager'
,
None
)
# if a manager ID is assigned then search for the operator with the corresponding ID
# if a manager ID is assigned then search for the operator with the corresponding ID
...
...
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