Update app.py
Browse files
app.py
CHANGED
@@ -189,10 +189,10 @@ with col:
|
|
189 |
# data = np.zeros((128,128))
|
190 |
|
191 |
if uploaded_file is not None:
|
192 |
-
data, wcs = load_file(uploaded_file)
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
|
197 |
# Make six columns for buttons
|
198 |
_, col1, col2, col3, col4, col5, col6, _ = st.columns([bordersize,0.5,0.5,0.5,0.5,0.5,0.5,bordersize])
|
|
|
189 |
# data = np.zeros((128,128))
|
190 |
|
191 |
if uploaded_file is not None:
|
192 |
+
# data, wcs = load_file(uploaded_file)
|
193 |
+
with fits.open(uploaded_file) as hdul:
|
194 |
+
data = hdul[0].data
|
195 |
+
wcs = WCS(hdul[0].header)
|
196 |
|
197 |
# Make six columns for buttons
|
198 |
_, col1, col2, col3, col4, col5, col6, _ = st.columns([bordersize,0.5,0.5,0.5,0.5,0.5,0.5,bordersize])
|