pylabrobot.resources.utils.query#
- pylabrobot.resources.utils.query(root: ~pylabrobot.resources.resource.Resource, type_: ~typing.Type[~pylabrobot.resources.utils.U] = <class 'pylabrobot.resources.resource.Resource'>, name: str | None = None, x: float | None = None, y: float | None = None, z: float | None = None) List[U] #
Query resources based on their attributes.
- Parameters:
root (Resource) – The root resource to search
type – The type of resources to search for
name (str | None) – The regular expression to match the name of the resources
x (float | None) – The x-coordinate of the resources
y (float | None) – The y-coordinate of the resources
z (float | None) – The z-coordinate of the resources
type_ (Type[U])
- Return type:
List[U]