Update app.py
Browse files
app.py
CHANGED
@@ -212,14 +212,15 @@ with col_2:
|
|
212 |
# If file is uploaded, read in the data and plot it
|
213 |
|
214 |
if uploaded_file is not None:
|
215 |
-
data, wcs = load_file(uploaded_file)
|
216 |
-
os.system(f'mkdir -p {uploaded_file.name.strip(".fits")}')
|
217 |
fname = uploaded_file.name.strip(".fits")
|
|
|
|
|
218 |
st.session_state['loaded'] = True
|
219 |
st.session_state['example'] = False
|
220 |
|
221 |
if example:
|
222 |
fname = "NGC4649_example"
|
|
|
223 |
data, wcs = load_file(f"{fname}.fits")
|
224 |
st.session_state['loaded'] = False
|
225 |
st.session_state['example'] = True
|
|
|
212 |
# If file is uploaded, read in the data and plot it
|
213 |
|
214 |
if uploaded_file is not None:
|
|
|
|
|
215 |
fname = uploaded_file.name.strip(".fits")
|
216 |
+
os.system(f'mkdir -p {fname}')
|
217 |
+
data, wcs = load_file(uploaded_file)
|
218 |
st.session_state['loaded'] = True
|
219 |
st.session_state['example'] = False
|
220 |
|
221 |
if example:
|
222 |
fname = "NGC4649_example"
|
223 |
+
os.system(f'mkdir -p {fname}')
|
224 |
data, wcs = load_file(f"{fname}.fits")
|
225 |
st.session_state['loaded'] = False
|
226 |
st.session_state['example'] = True
|