当前位置: 首页>>代码示例>>Python>>正文


Python Inventory.testLoad方法代码示例

本文整理汇总了Python中inventory.Inventory.testLoad方法的典型用法代码示例。如果您正苦于以下问题:Python Inventory.testLoad方法的具体用法?Python Inventory.testLoad怎么用?Python Inventory.testLoad使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在inventory.Inventory的用法示例。


在下文中一共展示了Inventory.testLoad方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Inventory

# 需要导入模块: from inventory import Inventory [as 别名]
# 或者: from inventory.Inventory import testLoad [as 别名]
            [["arm", {}, 1], ["ap", {"color": "waiting for source"}, 1], ["sp", {"color": "reserved"}, 1]],
            [["arm", {}, 1], ["ap", {"color": "dose"}, 1], ["sp", {"color": "dosing"}, 1]],
            {"barcodeAP": ["match"]},
        ),
        (
            "dispenser",
            [["arm", {}, 1], ["ap", {"color": "dose"}, 1], ["sp", {"color": "dosing"}, 1]],
            [["arm", {}, 1], ["ap", {"color": "waiting for source"}, 1], ["sp", {"color": "free"}, 1]],
            {"barcodeAP": ["match"]},
        ),
        ("incubatorOut", [["arm", {}, 1], ["ap", {"color": "complete"}, 1]], [["arm", {}, 1], ["runSlot", {}, 1]], {}),
    )

    inventory = Inventory("assayPlates.db")
    inventory.reset()
    inventory.testLoad("ZLCS000", 4, "platehub1", 5, 10)
    assayPlates = inventory.availableAssayPlates()

    initialTokenAssignments = {
        "ap": [len(assayPlates), {"color": "new"}],
        "arm": [1, {}],
        "runSlot": [2, {}],
        "sp": [12, {}],
    }
    utils.resetLog("trace_" + str(utils.sessionID) + ".txt")
    petriNet = PetriNet(specs)

if False:
    specs = (
        ("lims", [["arm", 1], ["runSlot", 1], ["ap", 1]], [["arm", 1], ["ap", 1]], {}),
        ("dispenser", [["ap", 1], ["arm", 1], ["sp", 1]], [["ap", 1], ["arm", 1]], {"barcodeAP": None}),
开发者ID:pgrossma,项目名称:petri,代码行数:33,代码来源:petri1.py


注:本文中的inventory.Inventory.testLoad方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。