Format package
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
from project import have_project, create_project, delete_project
|
||||
from project import is_project_open, open_project, close_project
|
||||
from .project import have_project, create_project, delete_project
|
||||
from .project import is_project_open, open_project, close_project
|
||||
|
||||
from operation import execute_undo as undo
|
||||
from operation import execute_redo as redo
|
||||
from .operation import execute_undo as undo
|
||||
from .operation import execute_redo as redo
|
||||
|
||||
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_curve
|
||||
from s0_base import is_pattern
|
||||
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_curve
|
||||
from .s0_base import is_pattern
|
||||
|
||||
from s1_title import set_title, get_title
|
||||
from .s1_title import set_title, get_title
|
||||
|
||||
from s2_junctions import add_junction, delete_junction
|
||||
from s2_junctions import get_junction_elevation, get_junction_demand, get_junction_pattern, get_junction_coord
|
||||
from s2_junctions import set_junction_elevation, set_junction_demand, set_junction_pattern, set_junction_coord
|
||||
from .s2_junctions import add_junction, delete_junction
|
||||
from .s2_junctions import get_junction_elevation, get_junction_demand, get_junction_pattern, get_junction_coord
|
||||
from .s2_junctions import set_junction_elevation, set_junction_demand, set_junction_pattern, set_junction_coord
|
||||
@@ -1,5 +1,5 @@
|
||||
from psycopg.rows import dict_row
|
||||
from connection import g_conn_dict as conn
|
||||
from .connection import g_conn_dict as conn
|
||||
|
||||
def _get_current_operation(name: str) -> int:
|
||||
with conn[name].cursor(row_factory=dict_row) as cur:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import psycopg as pg
|
||||
from connection import g_conn_dict as conn
|
||||
from .connection import g_conn_dict as conn
|
||||
|
||||
# no undo/redo
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from psycopg.rows import dict_row, Row
|
||||
from connection import g_conn_dict as conn
|
||||
from .connection import g_conn_dict as conn
|
||||
|
||||
_NODE = "_node"
|
||||
_LINK = "_link"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from psycopg.rows import dict_row
|
||||
from operation import *
|
||||
from connection import g_conn_dict as conn
|
||||
from .operation import *
|
||||
from .connection import g_conn_dict as conn
|
||||
|
||||
def get_title(name: str) -> str:
|
||||
with conn[name].cursor(row_factory=dict_row) as cur:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from psycopg.rows import dict_row, Row
|
||||
from connection import g_conn_dict as conn
|
||||
from s0_base import *
|
||||
from operation import *
|
||||
from .connection import g_conn_dict as conn
|
||||
from .s0_base import *
|
||||
from .operation import *
|
||||
|
||||
def add_junction(name: str, id: str, x: float, y: float, elevation: float) -> None:
|
||||
if is_node(name, id):
|
||||
|
||||
Reference in New Issue
Block a user