Skip to content

Commit

Permalink
update path of networks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariosmsk committed Mar 5, 2024
1 parent 8936906 commit 049e36e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions epyt/examples/python/Toolkit_api_EX2_using_MSX_functions.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
from epyt.epanet import epanet, epanetmsxapi
from epyt import networks
import numpy as np
import os

# Create EPANET object using INP file and MSX object using MSX file
inpname = os.path.join(os.getcwd(), 'epyt', 'networks', 'asce-tf-wdst', 'net2-cl2.inp')
dirname = os.path.dirname(networks.__file__)
inpname = os.path.join(dirname, 'msx-examples', 'net2-cl2.inp')
msxname = os.path.join(dirname, 'msx-examples', 'net2-cl2.msx')

d = epanet(inpname, msx=True)
msxname = os.path.join(os.getcwd(), 'epyt', 'net2-cl2.msx')
msx = epanetmsxapi(msxname)
MSX_SPECIES = 3
ss = list(range(1, d.LinkCount + 1))
Expand Down

0 comments on commit 049e36e

Please sign in to comment.