mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-06 06:25:06 +00:00
fix:debug dummy2
This commit is contained in:
@@ -25,6 +25,7 @@ from .reset_handling_protocol import generate_reset_handling_protocol
|
||||
from .dry_protocol import generate_dry_protocol
|
||||
from .recrystallize_protocol import generate_recrystallize_protocol
|
||||
from .hydrogenate_protocol import generate_hydrogenate_protocol
|
||||
from .transfer_protocol import generate_transfer_protocol
|
||||
|
||||
|
||||
# Define a dictionary of protocol generators.
|
||||
@@ -53,5 +54,6 @@ action_protocol_generators = {
|
||||
StartStirProtocol: generate_start_stir_protocol,
|
||||
StirProtocol: generate_stir_protocol,
|
||||
StopStirProtocol: generate_stop_stir_protocol,
|
||||
TransferProtocol: generate_transfer_protocol,
|
||||
WashSolidProtocol: generate_wash_solid_protocol,
|
||||
}
|
||||
19
unilabos/compile/transfer_protocol.py
Normal file
19
unilabos/compile/transfer_protocol.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from unilabos.compile.pump_protocol import generate_pump_protocol_with_rinsing
|
||||
|
||||
|
||||
def generate_transfer_protocol(graph, node, step_id):
|
||||
"""
|
||||
Generate transfer protocol using pump protocol with default flow rates.
|
||||
This is a simplified version of PumpTransferProtocol for basic transfers.
|
||||
"""
|
||||
# Add default flow rates for basic transfer protocol
|
||||
node_with_defaults = node.copy()
|
||||
|
||||
# Set default flow rates if not present
|
||||
if not hasattr(node, 'flowrate'):
|
||||
node_with_defaults['flowrate'] = 2.5
|
||||
if not hasattr(node, 'transfer_flowrate'):
|
||||
node_with_defaults['transfer_flowrate'] = 0.5
|
||||
|
||||
# Use the existing pump protocol generator
|
||||
return generate_pump_protocol_with_rinsing(graph, node_with_defaults, step_id)
|
||||
Reference in New Issue
Block a user