Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update epanet example into demo model. #71

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions notebooks/EngineAccessor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
"from mikeplus.engines.epanet import EPANET\n",
"\n",
"current_dir = os.getcwd()\n",
"data_access = DataTableAccess(\n",
" \"../tests/testdata/Db/Average DayDemand GPM/AverageDayDemand_GPM.sqlite\"\n",
")\n",
"data_access = DataTableAccess(\"../tests/testdata/Db/Epanet_Demo/Epanet_Demo.sqlite\")\n",
"data_access.open_database()\n",
"engine = EPANET(data_access.datatables)\n",
"engine.run_engine_epanet()\n",
Expand Down
8 changes: 3 additions & 5 deletions tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ def test_mike1d_engine():
assert os.path.exists(res_1d_file)


@pytest.mark.skip(
reason="Test not passing, not sure why. Investigate under separate issue."
)
@pytest.mark.slow(reason="Test run slow because of the license check.")
def test_epanet_engine():
dbFile = os.path.join(
"tests",
"testdata",
"Db",
"Average DayDemand GPM",
"AverageDayDemand_GPM.sqlite",
"Epanet_Demo",
"Epanet_Demo.sqlite",
)
current_dir = os.getcwd()
data_access = DataTableAccess(dbFile)
Expand Down
Loading
Loading