Add get_regular_container func

(cherry picked from commit ed8ee29732)
This commit is contained in:
Xuwznln
2025-11-27 13:46:40 +08:00
parent 9f4a69ddf5
commit 3fa81ab4f6
2 changed files with 6 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ container:
category: category:
- container - container
class: class:
module: unilabos.resources.container:RegularContainer module: unilabos.resources.container:get_regular_container
type: pylabrobot type: pylabrobot
description: regular organic container description: regular organic container
handles: handles:

View File

@@ -22,6 +22,11 @@ class RegularContainer(Container):
def load_state(self, state: Dict[str, Any]): def load_state(self, state: Dict[str, Any]):
self.state = state self.state = state
def get_regular_container(name="container"):
return RegularContainer(name=name)
# #
# class RegularContainer(object): # class RegularContainer(object):
# # 第一个参数必须是id传入 # # 第一个参数必须是id传入