Update app.py
Browse files
app.py
CHANGED
|
@@ -51,8 +51,6 @@ def cut(data0, wcs0, scale=1):
|
|
| 51 |
shape = data0.shape[0]
|
| 52 |
x0 = shape / 2
|
| 53 |
size = 128 * scale
|
| 54 |
-
|
| 55 |
-
print(size)
|
| 56 |
cutout = Cutout2D(data0, (x0, x0), (size, size), wcs=wcs0)
|
| 57 |
data, wcs = cutout.data, cutout.wcs
|
| 58 |
|
|
@@ -90,9 +88,7 @@ if uploaded_file is not None:
|
|
| 90 |
unsafe_allow_html=True
|
| 91 |
)
|
| 92 |
|
| 93 |
-
scale = int(st.selectbox('Scale:',[i for i in range(max_scale)], label_visibility="hidden"))
|
| 94 |
-
|
| 95 |
-
print(scale)
|
| 96 |
|
| 97 |
plot_image(np.log10(data+1), scale)
|
| 98 |
|
|
|
|
| 51 |
shape = data0.shape[0]
|
| 52 |
x0 = shape / 2
|
| 53 |
size = 128 * scale
|
|
|
|
|
|
|
| 54 |
cutout = Cutout2D(data0, (x0, x0), (size, size), wcs=wcs0)
|
| 55 |
data, wcs = cutout.data, cutout.wcs
|
| 56 |
|
|
|
|
| 88 |
unsafe_allow_html=True
|
| 89 |
)
|
| 90 |
|
| 91 |
+
scale = int(st.selectbox('Scale:',[i+1 for i in range(max_scale)], label_visibility="hidden"))
|
|
|
|
|
|
|
| 92 |
|
| 93 |
plot_image(np.log10(data+1), scale)
|
| 94 |
|