Skip to content

Commit deb7c02

Browse files
authored
Update SpecNec_executable_streamlit.py
1 parent 5178d50 commit deb7c02

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

fun_SPEC_NEC/SpecNec_executable_streamlit.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# line of run c:\users\normando\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\scripts\streamlit.exe run SpecNec_executable_streamlit.py
88
#########
99

10-
# Load and display the image
10+
######################################################## header ########################################################
1111
image_path = 'https://raw.githubusercontent.com/Normando1945/Simple-Python-Matlab-JavaSript-Functions-Collection/main/fun_SPEC_NEC/logo_TorreFuerte.png'
1212
st.image(image_path, use_column_width=True)
1313

@@ -25,7 +25,7 @@
2525

2626
st.markdown('You can find me on : [![Web Page](https://img.shields.io/badge/Web%20Page-caceli.net-blue)](https://fragrant-knight-4af.notion.site/Main-Page-5c5f007b3f3f4c76a604960d9dbffca7?pvs=4)[![GitHub Carlos Celi](https://img.shields.io/github/followers/Normando1945?label=follow&style=social)](https://github.com/Normando1945)[![ResearchGate](https://img.shields.io/badge/-ResearchGate-00CCBB?style=social&logo=researchgate)](https://www.researchgate.net/profile/Carlos-Celi)[![Google Scholar](https://img.shields.io/badge/-Google%20Scholar-4285F4?style=social&logo=google)](https://scholar.google.com.ec/citations?hl=es&user=yR4Gz7kAAAAJ)')
2727

28-
###################################### Author #########################################################
28+
######################################################## Author ########################################################
2929
st.markdown('##### 😎 **About the Author**')
3030
with st.expander("**Click to read more**"):
3131
coll1, coll2 = st.columns([1,1])
@@ -71,7 +71,7 @@
7171
"""
7272
)
7373

74-
###################################### Description #########################################################
74+
######################################################## Description ########################################################
7575
st.markdown(
7676
'''
7777
##### :open_book: Description
@@ -81,7 +81,7 @@
8181
'''
8282
)
8383

84-
###################################### More Information #########################################################
84+
######################################################## More Information ########################################################
8585
st.markdown('##### :ledger: **More Information about this Simple App**')
8686
with st.expander("**Click to read more**"):
8787
j1, j2 = st.columns([1, 2])
@@ -116,8 +116,7 @@
116116

117117

118118

119-
120-
######################################
119+
######################################################## user parameters ########################################################
121120

122121
n = st.number_input('**n**: Ratio between spectral ordinates **Sa(T = 0.1 s)** and **PGA**:', value=2.48, step=0.1)
123122
z = st.number_input('**z**: Maximum expected acceleration (fraction of gravitational acceleration):', value=0.4, step=0.1)
@@ -143,10 +142,7 @@
143142
r = st.number_input('**r**: Geographic zone factor [for Ecuador]:', value=1.0, step=0.1)
144143

145144

146-
147-
148-
149-
#####################################################
145+
######################################################## Code ########################################################
150146

151147
fads = [fa, fd, fs]
152148
To = 0.10 * fads[2] * fads[1] / fads[0]
@@ -203,6 +199,9 @@
203199

204200
st.write(Resul)
205201

202+
203+
######################################################## Footer ########################################################
204+
206205
def display_footer():
207206
footer = """
208207
<style>

0 commit comments

Comments
 (0)