Ejemplo n.º 1
0
def test_prettify(session):
    with session.with_cache() as sess:
        canvas = Planner(sess)

        for i in range(10):
            canvas.create_operation_by_name("Yeast Overnight Suspension")

        canvas.prettify()
Ejemplo n.º 2
0
def test_prettify(session):
    with session.with_cache() as sess:
        canvas = Planner(sess)
        chain = [
            "Check Plate",
            "Make Overnight Suspension",
            "Make Miniprep",
            "Yeast Transformation",
            "Yeast Overnight Suspension",
        ]

        ops = canvas.chain(*chain)
        canvas.set_field_value_and_propogate(ops[0].inputs[0])
        canvas.set_to_available_item(ops[0].inputs[0])

        ops = canvas.chain(*chain)
        canvas.set_field_value_and_propogate(ops[0].inputs[0])
        canvas.set_to_available_item(ops[0].inputs[0])

        canvas.prettify()