Add curve api and test
This commit is contained in:
@@ -7,6 +7,8 @@ from .s6_pumps import *
|
||||
from .s7_valves import *
|
||||
from .s9_demands import *
|
||||
from .s10_status import *
|
||||
from .s11_patterns import *
|
||||
from .s12_curves import *
|
||||
|
||||
|
||||
def execute_add_command(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
@@ -49,6 +51,10 @@ def execute_update_command(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return set_demand(name, cs)
|
||||
elif type == 'status':
|
||||
return set_status(name, cs)
|
||||
elif type == PATTERN:
|
||||
return set_pattern(name, cs)
|
||||
elif type == CURVE:
|
||||
return set_curve(name, cs)
|
||||
|
||||
return ChangeSet()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user