Support calculate distribution
This commit is contained in:
@@ -1032,6 +1032,13 @@ def delete_region(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
# water_distribution 34
|
||||
############################################################
|
||||
|
||||
|
||||
def calculate_demand_to_nodes(name: str, demand: float, nodes: list[str]) -> dict[str, float]:
|
||||
return api.calculate_demand_to_nodes(name, demand, nodes)
|
||||
|
||||
def calculate_demand_to_region(name: str, demand: float, region: str) -> dict[str, float]:
|
||||
return api.calculate_demand_to_region(name, demand, region)
|
||||
|
||||
def distribute_demand_to_nodes(name: str, demand: float, nodes: list[str], type: str = DISTRIBUTION_TYPE_ADD) -> ChangeSet:
|
||||
return api.distribute_demand_to_nodes(name, demand, nodes, type)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user