Skip to content

Commit

Permalink
Update epanet example into demo model.
Browse files Browse the repository at this point in the history
  • Loading branch information
wuwwen authored and ryan-kipawa committed Nov 12, 2024
1 parent 3a58cdc commit b44c161
Show file tree
Hide file tree
Showing 14 changed files with 14,185 additions and 13,254 deletions.
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

0 comments on commit b44c161

Please sign in to comment.