微调
This commit is contained in:
parent
c1a8cdedcd
commit
1028dfed30
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -3,5 +3,5 @@
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (Scheduling)" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (scheduling)" project-jdk-type="Python SDK" />
|
||||
</project>
|
2
.idea/scheduling.iml
generated
2
.idea/scheduling.iml
generated
@ -4,7 +4,7 @@
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.7 (Scheduling)" jdkType="Python SDK" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -51,7 +51,7 @@ def import_process(res, products: Dict[str, model.Product]) -> Dict[str, model.P
|
||||
|
||||
for record in res:
|
||||
process: model.Process = model.Process(record[0], record[1], products[record[2]], record[9])
|
||||
process.set_mode_quantity(record[5], record[6], record[7])
|
||||
process.set_mode_quantity(record[5], record[7], record[6])
|
||||
process.set_product_time(record[8])
|
||||
products[record[2]].add_process(process)
|
||||
processes[process.pcs_id] = process
|
||||
|
@ -38,7 +38,7 @@ def search_semi_products(floor, produce_tree, produce_list, runtime_product):
|
||||
produce_tree.append({"runtime_product": runtime_product, "runtime_semi_products": runtime_semi_products})
|
||||
# print("F", runtime_product.product.product_id, runtime_product.ddl)
|
||||
if len(runtime_product.product.semi_products) > 0:
|
||||
|
||||
for i in range(runtime_product.amount):
|
||||
for item in runtime_product.product.semi_products:
|
||||
|
||||
runtime_semi_product = runtime.RuntimeProduct(item["semi_product"], item["amount"])
|
||||
@ -46,6 +46,7 @@ def search_semi_products(floor, produce_tree, produce_list, runtime_product):
|
||||
|
||||
# print("C", runtime_semi_product.product.product_id, runtime_semi_product.ddl)
|
||||
|
||||
for k in range(runtime_semi_product.amount):
|
||||
search_semi_products(floor+1, runtime_semi_products, produce_list, runtime_semi_product)
|
||||
|
||||
print("L", floor, runtime_product.product.product_id, runtime_product.ddl)
|
||||
|
Loading…
Reference in New Issue
Block a user