Commit ec1e70b9 authored by Jérome Perrin's avatar Jérome Perrin

OldStylePartJobShopWIP: fail explicitly in case of using a non machine missing in the model

parent b21145cf
......@@ -24,6 +24,8 @@ class OldStylePartJobShopWIP(plugin.InputPreparationPlugin):
for machine_name in self.data['graph']["node"].keys():
if machine_name.startswith(step_name):
machine_name_set.add(machine_name)
if not machine_name_set:
raise ValueError("No machine found for step %s" % step_name)
return machine_name_set
def getNotMachineNodePredecessorList(self, step_name):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment