Skip to content

Commit

Permalink
Update prepare_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
XPD Operator committed Feb 9, 2024
1 parent 29d5832 commit e252eb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions scripts/kafka_consumer_iterate_qserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
# ]

USE_AGENT_iterate = True
peak_target = 550
peak_target = 590

if USE_AGENT_iterate:

Expand Down Expand Up @@ -450,7 +450,7 @@ def print_message(consumer, doctype, doc,
"name":"start_group_infuse",
"args": [[wash_tube[1]], [wash_tube[2]]],
"item_type":"plan"},
'pos': pos,
'pos': 1,
'user_group':'primary',
'user':'chlin'})

Expand All @@ -462,7 +462,7 @@ def print_message(consumer, doctype, doc,
"name":"sleep_sec_q",
"args":[wash_tube[3]],
"item_type":"plan"},
'pos': pos,
'pos': 2,
'user_group':'primary',
'user':'chlin'})

Expand All @@ -475,7 +475,7 @@ def print_message(consumer, doctype, doc,
"name":"stop_group",
"args": [[wash_tube[1]]],
"item_type":"plan"},
'pos': pos,
'pos': 3,
'user_group':'primary',
'user':'chlin'})

Expand Down Expand Up @@ -543,7 +543,7 @@ def print_message(consumer, doctype, doc,
"name":"start_group_infuse",
"args": [[wash_tube[1]], [wash_tube[2]]],
"item_type":"plan"},
'pos': pos,
'pos': 1,
'user_group':'primary',
'user':'chlin'})

Expand All @@ -555,7 +555,7 @@ def print_message(consumer, doctype, doc,
"name":"sleep_sec_q",
"args":[wash_tube[3]],
"item_type":"plan"},
'pos': pos,
'pos': 2,
'user_group':'primary',
'user':'chlin'})

Expand All @@ -568,7 +568,7 @@ def print_message(consumer, doctype, doc,
"name":"stop_group",
"args": [[wash_tube[1]]],
"item_type":"plan"},
'pos': pos,
'pos': 3,
'user_group':'primary',
'user':'chlin'})

Expand Down
6 changes: 3 additions & 3 deletions scripts/prepare_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ def build_agen(peak_target=660, peak_tolerance=5):


if peak_target > 525:
I_up_limit = 170
I_up_limit = 200
Cl_up_limit = 0

elif peak_target < 515:
I_up_limit = 0
Cl_up_limit = 170
Cl_up_limit = 200

else:
I_up_limit = 0
Expand All @@ -31,7 +31,7 @@ def build_agen(peak_target=660, peak_tolerance=5):

dofs = [
DOF(description="CsPb(oleate)3", name="infusion_rate_CsPb", units="uL/min", search_bounds=(10, 110)),
DOF(description="TOABr", name="infusion_rate_Br", units="uL/min", search_bounds=(70, 170)),
DOF(description="TOABr", name="infusion_rate_Br", units="uL/min", search_bounds=(50, 200)),
DOF(description="ZnCl2", name="infusion_rate_Cl", units="uL/min", search_bounds=(0, Cl_up_limit)),
DOF(description="ZnI2", name="infusion_rate_I2", units="uL/min", search_bounds=(0, I_up_limit)),
]
Expand Down

0 comments on commit e252eb5

Please sign in to comment.