Add control api and test

This commit is contained in:
WQY\qiong
2022-10-29 19:04:42 +08:00
parent a04dcdd1ee
commit 44475cf005
5 changed files with 86 additions and 0 deletions

View File

@@ -414,6 +414,21 @@ def set_curve(name: str, cs: ChangeSet) -> ChangeSet:
return api.set_curve(name, cs)
############################################################
# control 12.[CONTROLS]
############################################################
def get_control_schema(name: str) -> dict[str, dict[str, Any]]:
return api.get_control_schema(name)
def get_control(name: str) -> dict[str, Any]:
return api.get_control(name)
# example: set_control(p, ChangeSet({'control': 'x'}))
def set_control(name: str, cs: ChangeSet) -> ChangeSet:
return api.set_control(name, cs)
############################################################
# emitter 16.[EMITTERS]
############################################################