Plsek commited on
Commit
83ff4da
·
1 Parent(s): 6fa9f7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -51,6 +51,8 @@ def cut(data0, wcs0, scale=1):
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
 
@@ -83,8 +85,15 @@ if uploaded_file is not None:
83
  max_scale = int(data.shape[0] // 128)
84
  # scale = st.slider("Scale", 1, max_scale, 1, 1)
85
 
 
 
 
 
 
86
  scale = int(st.selectbox('Scale:',[i for i in range(max_scale)], label_visibility="hidden"))
87
 
 
 
88
  plot_image(np.log10(data+1), scale)
89
 
90
  with col2:
 
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
 
 
85
  max_scale = int(data.shape[0] // 128)
86
  # scale = st.slider("Scale", 1, max_scale, 1, 1)
87
 
88
+ st.markdown(
89
+ """<style>[data-baseweb="select"] {margin-top: -50px;}</style>""",
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
 
99
  with col2: