Update app.py
Browse files
app.py
CHANGED
@@ -156,7 +156,12 @@ with col_1:
|
|
156 |
uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])
|
157 |
|
158 |
with col_2:
|
159 |
-
|
|
|
|
|
|
|
|
|
|
|
160 |
|
161 |
# If file is uploaded, read in the data and plot it
|
162 |
if uploaded_file is not None:
|
@@ -172,8 +177,7 @@ if uploaded_file is not None:
|
|
172 |
col6.subheader("")
|
173 |
|
174 |
with col1:
|
175 |
-
st.markdown("""<style>[data-baseweb="select"] {margin-top: -
|
176 |
-
# st.markdown("<style>{margin-top: -56px;}</style>", unsafe_allow_html=True)
|
177 |
max_scale = int(data.shape[0] // 128)
|
178 |
scale = st.selectbox('Scale:',[f"{(i+1)*128}x{(i+1)*128}" for i in range(max_scale)], label_visibility="hidden")
|
179 |
scale = int(scale.split("x")[0]) // 128
|
|
|
156 |
uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])
|
157 |
|
158 |
with col_2:
|
159 |
+
st.markdown("# Examples")
|
160 |
+
NGC4649 = st.button("NGC4649")
|
161 |
+
NGC5813 = st.button("NGC5813")
|
162 |
+
|
163 |
+
if NGC4649: uploaded_file = "NGC4649_example.fits"
|
164 |
+
elif NGC5813: uploaded_file = "NGC5813_example.fits"
|
165 |
|
166 |
# If file is uploaded, read in the data and plot it
|
167 |
if uploaded_file is not None:
|
|
|
177 |
col6.subheader("")
|
178 |
|
179 |
with col1:
|
180 |
+
st.markdown("""<style>[data-baseweb="select"] {margin-top: -46px;}</style>""", unsafe_allow_html=True)
|
|
|
181 |
max_scale = int(data.shape[0] // 128)
|
182 |
scale = st.selectbox('Scale:',[f"{(i+1)*128}x{(i+1)*128}" for i in range(max_scale)], label_visibility="hidden")
|
183 |
scale = int(scale.split("x")[0]) // 128
|