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
1392ab42
Commit
1392ab42
authored
Apr 16, 2015
by
panos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assert inserted when part is not None
parent
e6843375
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dream/simulation/Job.py
dream/simulation/Job.py
+1
-1
No files found.
dream/simulation/Job.py
View file @
1392ab42
...
...
@@ -185,7 +185,6 @@ class Job(Entity): # inherits from the Entity c
if
nextSequence
==
None
or
nextSequence
==
""
:
return
True
else
:
# print nextSequence
nextSequence
=
int
(
nextSequence
)
# flag that decides if the entity can proceed to the next station in its route
mayProceed
=
False
...
...
@@ -237,6 +236,7 @@ class Job(Entity): # inherits from the Entity c
for
partID
in
requiredPartsIDs
:
# find the objects with the corresponding IDs
part
=
findObjectById
(
partID
)
assert
part
!=
None
,
'the order Component just retrieved based on its ID cannot be None'
if
not
part
in
requiredParts
:
requiredParts
.
append
(
part
)
return
requiredParts
...
...
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