diff --git a/app/algorithms/simulations.py b/app/algorithms/simulations.py index 4fbcd9a..d84f0b5 100644 --- a/app/algorithms/simulations.py +++ b/app/algorithms/simulations.py @@ -9,7 +9,7 @@ from app.algorithms.api_ex.run_simulation import ( run_simulation_ex, from_clock_to_seconds_2, ) -from app.services.epanet.epanet import Output +from app.infra.epanet.epanet import Output from app.services.scheme_management import store_scheme_info from app.services.tjnetwork import * diff --git a/app/services/epanet/__init__.py b/app/infra/epanet/__init__.py similarity index 100% rename from app/services/epanet/__init__.py rename to app/infra/epanet/__init__.py diff --git a/app/services/epanet/epanet.py b/app/infra/epanet/epanet.py similarity index 100% rename from app/services/epanet/epanet.py rename to app/infra/epanet/epanet.py diff --git a/app/services/epanet/linux/libepanet-output.so b/app/infra/epanet/linux/libepanet-output.so similarity index 100% rename from app/services/epanet/linux/libepanet-output.so rename to app/infra/epanet/linux/libepanet-output.so diff --git a/app/services/epanet/linux/libepanet2.so b/app/infra/epanet/linux/libepanet2.so similarity index 100% rename from app/services/epanet/linux/libepanet2.so rename to app/infra/epanet/linux/libepanet2.so diff --git a/app/services/epanet/linux/runepanet b/app/infra/epanet/linux/runepanet similarity index 100% rename from app/services/epanet/linux/runepanet rename to app/infra/epanet/linux/runepanet diff --git a/app/services/epanet/windows/epanet-output.dll b/app/infra/epanet/windows/epanet-output.dll similarity index 100% rename from app/services/epanet/windows/epanet-output.dll rename to app/infra/epanet/windows/epanet-output.dll diff --git a/app/services/epanet/windows/epanet2.dll b/app/infra/epanet/windows/epanet2.dll similarity index 100% rename from app/services/epanet/windows/epanet2.dll rename to app/infra/epanet/windows/epanet2.dll diff --git a/app/services/epanet/windows/runepanet.exe b/app/infra/epanet/windows/runepanet.exe similarity index 100% rename from app/services/epanet/windows/runepanet.exe rename to app/infra/epanet/windows/runepanet.exe diff --git a/app/native/wndb/s34_sa_cal.py b/app/native/wndb/s34_sa_cal.py index c72a2a5..4304b6d 100644 --- a/app/native/wndb/s34_sa_cal.py +++ b/app/native/wndb/s34_sa_cal.py @@ -75,7 +75,7 @@ from .database import * from .s0_base import get_node_links, get_link_nodes sys.path.append('..') -from epanet.epanet import run_project +from app.infra.epanet.epanet import run_project def _calculate_service_area(name: str, inp, time_index: int = 0) -> dict[str, list[str]]: sources : dict[str, list[str]] = {} diff --git a/app/services/simulation.py b/app/services/simulation.py index 4f2a41b..b3787b7 100644 --- a/app/services/simulation.py +++ b/app/services/simulation.py @@ -10,7 +10,7 @@ import pytz import requests import time import shutil -from app.services.epanet.epanet import Output +from app.infra.epanet.epanet import Output from typing import Optional, Tuple import app.infra.db.influxdb.api as influxdb_api import typing diff --git a/app/services/simulation_ops.py b/app/services/simulation_ops.py index 57666ec..6b2f3b5 100644 --- a/app/services/simulation_ops.py +++ b/app/services/simulation_ops.py @@ -5,7 +5,7 @@ from math import pi import pytz from app.algorithms.api_ex.run_simulation import run_simulation_ex -from app.services.epanet.epanet import Output +from app.infra.epanet.epanet import Output from app.services.tjnetwork import * diff --git a/app/services/tjnetwork.py b/app/services/tjnetwork.py index be1707d..a8447e0 100644 --- a/app/services/tjnetwork.py +++ b/app/services/tjnetwork.py @@ -1,7 +1,7 @@ from typing import Any import app.native.wndb as api from app.native.wndb.s36_wda_cal import * -import app.services.epanet as epanet +import app.infra.epanet as epanet ############################################################ diff --git a/scripts/online_Analysis.py b/scripts/online_Analysis.py index b9f46a3..e1f9414 100644 --- a/scripts/online_Analysis.py +++ b/scripts/online_Analysis.py @@ -3,7 +3,7 @@ from app.services.tjnetwork import * from app.native.wndb.project import copy_project from app.algorithms.api_ex.run_simulation import run_simulation_ex, from_clock_to_seconds_2 from math import sqrt, pi -from app.services.epanet.epanet import Output +from app.infra.epanet.epanet import Output import json from datetime import datetime import time