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

fix inp error #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Binary file modified __pycache__/bim.cpython-311.pyc
Binary file not shown.
8 changes: 4 additions & 4 deletions viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
if 'out_df' not in st.session_state:
st.session_state['out_df'] = None

st.session_state['inp'] = "inp/Example1.inp"#default path for inp file
st.session_state['inp'] = 'inp/Example1.inp'#default path for inp file
st.session_state['rpt'] = 'inp/Example1.out'#default path for rpt file

# set streamlit page title
Expand Down Expand Up @@ -45,7 +45,7 @@
st.session_state['rpt'] = 'tempDir/temp.out' ######desktop/laptop change path

else:

st.session_state['inp'] = 'inp/Example1.inp'
inp = SwmmInput.read_file(st.session_state['inp'])#default path for inp file


Expand Down Expand Up @@ -464,7 +464,7 @@ def threeD_view(inp):
def run_model(inp):

#import time
st.write(st.session_state['inp'])
#st.write(st.session_state['inp'])
#with Simulation(r'inp/Example1.inp') as sim:######desktop/laptop change path
with Simulation(st.session_state['inp']) as sim:
#show progress bar
Expand All @@ -477,7 +477,7 @@ def run_model(inp):

st.write("Simulation Done!")

st.write(st.session_state['rpt'])
#st.write(st.session_state['rpt'])
#read the output file

out = read_out_file(st.session_state['rpt'])
Expand Down