Add emitter api and test

This commit is contained in:
WQY\qiong
2022-10-22 14:00:22 +08:00
parent 40e97fd166
commit eca95309ed
5 changed files with 132 additions and 1 deletions

View File

@@ -340,7 +340,7 @@ def set_pattern(name: str, cs: ChangeSet) -> ChangeSet:
############################################################
# curve 11.[CURVES]
# curve 12.[CURVES]
############################################################
def get_curve_schema(name: str) -> dict[str, dict[str, Any]]:
@@ -353,6 +353,20 @@ def set_curve(name: str, cs: ChangeSet) -> ChangeSet:
return api.set_curve(name, cs)
############################################################
# emitter 16.[EMITTERS]
############################################################
def get_emitter_schema(name: str) -> dict[str, dict[str, Any]]:
return api.get_emitter_schema(name)
def get_emitter(name: str, id: str) -> dict[str, Any]:
return api.get_emitter(name, id)
def set_emitter(name: str, cs: ChangeSet) -> ChangeSet:
return api.set_emitter(name, cs)
############################################################
# coord 24.[COORDINATES]
############################################################