Add control api and test
This commit is contained in:
15
tjnetwork.py
15
tjnetwork.py
@@ -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]
|
||||
############################################################
|
||||
|
||||
Reference in New Issue
Block a user