Reuse s0 defined enum
This commit is contained in:
@@ -7,6 +7,7 @@ from .operation import execute_redo as redo
|
|||||||
from .operation import have_snapshot, take_snapshot, pick_snapshot
|
from .operation import have_snapshot, take_snapshot, pick_snapshot
|
||||||
from .operation import have_transaction, start_transaction, commit_transaction, abort_transaction
|
from .operation import have_transaction, start_transaction, commit_transaction, abort_transaction
|
||||||
|
|
||||||
|
from .s0_base import JUNCTION, RESERVOIR, TANK, PIPE, PUMP, VALVE
|
||||||
from .s0_base import is_node, is_junction, is_reservoir, is_tank
|
from .s0_base import is_node, is_junction, is_reservoir, is_tank
|
||||||
from .s0_base import is_link, is_pipe, is_pump, is_valve
|
from .s0_base import is_link, is_pipe, is_pump, is_valve
|
||||||
from .s0_base import is_curve
|
from .s0_base import is_curve
|
||||||
|
|||||||
@@ -5,12 +5,12 @@ import api
|
|||||||
# enum
|
# enum
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
JUNCTION = "JUNCTION"
|
JUNCTION = api.JUNCTION
|
||||||
RESERVOIR = "RESERVOIR"
|
RESERVOIR = api.RESERVOIR
|
||||||
TANK = "TANK"
|
TANK = api.TANK
|
||||||
PIPE = "PIPE"
|
PIPE = api.PIPE
|
||||||
PUMP = "PUMP"
|
PUMP = api.PUMP
|
||||||
VALVE = "VALVE"
|
VALVE = api.VALVE
|
||||||
|
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user