Update app.py
Browse files
app.py
CHANGED
|
@@ -186,26 +186,26 @@ If you use this tool in your research, please cite <a href='https://arxiv.org/ab
|
|
| 186 |
# (<a href='https://cxc.cfa.harvard.edu/ciao/ahelp/dmfilth.html'>dmfilth</a>). <br><br>\
|
| 187 |
|
| 188 |
|
| 189 |
-
|
| 190 |
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
# with col_2:
|
| 198 |
-
# st.markdown("### Examples")
|
| 199 |
-
# NGC4649 = st.button("NGC4649")
|
| 200 |
-
|
| 201 |
-
# with col_3:
|
| 202 |
-
# st.markdown("""<style>[data-baseweb="select"] {margin-top: 26px;}</style>""", unsafe_allow_html=True)
|
| 203 |
-
# NGC5813 = st.button("NGC5813")
|
| 204 |
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
# If file is uploaded, read in the data and plot it
|
| 211 |
if uploaded_file is not None:
|
|
|
|
| 186 |
# (<a href='https://cxc.cfa.harvard.edu/ciao/ahelp/dmfilth.html'>dmfilth</a>). <br><br>\
|
| 187 |
|
| 188 |
|
| 189 |
+
_, col_1, col_2, _ = st.columns([bordersize, 2.5, 0.5, bordersize])
|
| 190 |
|
| 191 |
+
with col_1:
|
| 192 |
+
uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'], on_change=reset_threshold)
|
| 193 |
+
|
| 194 |
+
with col_2:
|
| 195 |
+
example = st.button("Examples")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
+
# with col_2:
|
| 198 |
+
# st.markdown("### Examples")
|
| 199 |
+
# NGC4649 = st.button("NGC4649")
|
| 200 |
+
|
| 201 |
+
# with col_3:
|
| 202 |
+
# st.markdown("""<style>[data-baseweb="select"] {margin-top: 26px;}</style>""", unsafe_allow_html=True)
|
| 203 |
+
# NGC5813 = st.button("NGC5813")
|
| 204 |
+
|
| 205 |
+
# if NGC4649:
|
| 206 |
+
# uploaded_file = "NGC4649_example.fits"
|
| 207 |
+
# elif NGC5813:
|
| 208 |
+
# uploaded_file = "NGC5813_example.fits"
|
| 209 |
|
| 210 |
# If file is uploaded, read in the data and plot it
|
| 211 |
if uploaded_file is not None:
|