mirror of
https://github.com/deepmodeling/Uni-Lab-OS
synced 2026-03-31 16:53:07 +00:00
添加run_protocol参数
This commit is contained in:
@@ -1064,8 +1064,8 @@ class PRCXI9300Handler(LiquidHandlerAbstract):
|
||||
):
|
||||
self._unilabos_backend.create_protocol(protocol_name)
|
||||
|
||||
async def run_protocol(self):
|
||||
return self._unilabos_backend.run_protocol()
|
||||
async def run_protocol(self, protocol_id: str = None):
|
||||
return self._unilabos_backend.run_protocol(protocol_id)
|
||||
|
||||
async def remove_liquid(
|
||||
self,
|
||||
@@ -1559,12 +1559,15 @@ class PRCXI9300Backend(LiquidHandlerBackend):
|
||||
raise AssertionError(f"Failed to create matrix: {res.get('Message', 'Unknown error')}")
|
||||
print(f"PRCXI9300Backend created matrix with ID: {self.matrix_info['MatrixId']}, result: {res}")
|
||||
|
||||
def run_protocol(self):
|
||||
def run_protocol(self, protocol_id: str = None):
|
||||
assert self.is_reset_ok, "PRCXI9300Backend is not reset successfully. Please call setup() first."
|
||||
run_time = time.time()
|
||||
solution_id = self.api_client.add_solution(
|
||||
f"protocol_{run_time}", self.matrix_id, self.steps_todo_list
|
||||
)
|
||||
if protocol_id == "" or protocol_id is None:
|
||||
solution_id = self.api_client.add_solution(
|
||||
f"protocol_{run_time}", self.matrix_id, self.steps_todo_list
|
||||
)
|
||||
else:
|
||||
solution_id = protocol_id
|
||||
print(f"PRCXI9300Backend created solution with ID: {solution_id}")
|
||||
self.api_client.load_solution(solution_id)
|
||||
print(json.dumps(self.steps_todo_list, indent=2))
|
||||
|
||||
@@ -7779,7 +7779,8 @@ liquid_handler.prcxi:
|
||||
auto-run_protocol:
|
||||
feedback: {}
|
||||
goal: {}
|
||||
goal_default: {}
|
||||
goal_default:
|
||||
protocol_id: null
|
||||
handles: {}
|
||||
placeholder_keys: {}
|
||||
result: {}
|
||||
@@ -7788,7 +7789,9 @@ liquid_handler.prcxi:
|
||||
properties:
|
||||
feedback: {}
|
||||
goal:
|
||||
properties: {}
|
||||
properties:
|
||||
protocol_id:
|
||||
type: string
|
||||
required: []
|
||||
type: object
|
||||
result: {}
|
||||
|
||||
Reference in New Issue
Block a user